[PATCH] D92922: [clang-format] PR42434 Remove preprocessor and pragma lines from ObjectiveC guess
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 9 04:36:38 PST 2020
curdeius added inline comments.
================
Comment at: clang/lib/Format/Format.cpp:2037
+ if (Line->First->TokenText.startswith("#") ||
+ Line->First->TokenText == "__pragma") {
+ continue;
----------------
Maybe you should also handle MS-specific `_Pragma`?
https://docs.microsoft.com/en-us/cpp/preprocessor/pragma-directives-and-the-pragma-keyword?view=msvc-160
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92922/new/
https://reviews.llvm.org/D92922
More information about the cfe-commits
mailing list