[PATCH] D75791: [clang-format] Added new option IndentExternBlock
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 24 02:07:52 PDT 2020
MyDeveloperDay added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:2468
"}");
- verifyFormat("extern \"C\" int foo() {}");
- verifyFormat("extern \"C\" int foo();");
- verifyFormat("extern \"C\" int foo() {\n"
+ verifyFormat("extern \"C\" int FormatsExternC_2() {}");
+ verifyFormat("extern \"C\" int FormatsExternC_3();");
----------------
I know why you change these varaibles becuase when your developing its hard to see which test is failing because verifyFormat doesn't report the correct file and line number
but I like the use of `foo` because its 1 character more than your indent width and if there is going to be an out by one error you might hide it with a longer name
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75791/new/
https://reviews.llvm.org/D75791
More information about the cfe-commits
mailing list