diff options
author | Jared Grubb <jgrubb@apple.com> | 2023-10-02 16:31:03 -0700 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2023-10-15 15:44:57 -0700 |
commit | 6f46bcc609f14121e6942763ba9871f98541ea0e (patch) | |
tree | 1be90930e0417e4240fd6421276db6b9859027ce /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 2ad9a658005e6a4204d7ee617c3949632a707aa5 (diff) | |
download | llvm-6f46bcc609f14121e6942763ba9871f98541ea0e.zip llvm-6f46bcc609f14121e6942763ba9871f98541ea0e.tar.gz llvm-6f46bcc609f14121e6942763ba9871f98541ea0e.tar.bz2 |
[clang-format] Treat AttributeMacro more like __attribute__
There are two parts to this fix:
- Annotate the paren after an AttributeMacro as an AttributeLParen.
- Treat an AttributeMacro-without-paren the same as one with a paren.
I added a new test-case to differentiate a macro that is or is-not an
AttributeMacro; also handled whether ColumnLimit is set to infinite (0) or a
finite value, as part of this patch is in ContinuationIndenter.
Closes #68722.
Differential Revision: https://reviews.llvm.org/D145262
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions