This is an archive of the discontinued LLVM Phabricator instance.

[clang-format][tests] Explicitly specify style in some tests
ClosedPublic

Authored by r.stahl on Apr 23 2019, 4:45 AM.

Details

Summary

This fixes broken tests when doing an out-of-source build that picks up a random .clang-format on the file system due to the default "file" style.

Diff Detail

Event Timeline

r.stahl created this revision.Apr 23 2019, 4:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 23 2019, 4:45 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

This should be trivial enough to just commit, but I'd just be more comfortable if someone looked at it before, because this is my first commit in this area of clang.

lebedev.ri added inline comments.
test/Format/language-detection.cpp
2 ↗(On Diff #196212)

What's wrong with -style=llvm?

r.stahl marked 2 inline comments as done.Jul 10 2019, 1:13 AM
r.stahl added inline comments.
test/Format/language-detection.cpp
2 ↗(On Diff #196212)

I looked at all the tests in that folder and saw that LLVM is the more common usage and unified it.

MyDeveloperDay accepted this revision.Jul 10 2019, 12:34 PM
This revision is now accepted and ready to land.Jul 10 2019, 12:34 PM
This revision was automatically updated to reflect the committed changes.
r.stahl marked an inline comment as done.