[PATCH] D92753: [clang-format] Add IndentPragma style to eliminate common clang-format off scenario
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 7 04:15:33 PST 2020
MyDeveloperDay marked 7 inline comments as done.
MyDeveloperDay added a comment.
> Should this be controlled on a case by case basis, maybe control indentation using a regex over the pragma arguments, WDYT?
Most uses of pragmas seem to be at the 0'th level of scrope `#pragma once` etc
Most other pragmas are probably with the code (like comments) as such it seems we should add an option to keep it with the scope of the code, I think a regex is overkill, but we could add it later if deemed necessary.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92753/new/
https://reviews.llvm.org/D92753
More information about the cfe-commits
mailing list