diff options
author | Jared Grubb <jgrubb@apple.com> | 2023-10-10 13:58:41 -0700 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2023-10-15 15:58:24 -0700 |
commit | 7f881a2abe2c3eceeae0272fc41ba0a237770450 (patch) | |
tree | 8595527f264f96ad7952fdba0157a690b0a897b6 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 6c7cf74a75572c3cc5d9979f02b67a7357e9c656 (diff) | |
download | llvm-7f881a2abe2c3eceeae0272fc41ba0a237770450.zip llvm-7f881a2abe2c3eceeae0272fc41ba0a237770450.tar.gz llvm-7f881a2abe2c3eceeae0272fc41ba0a237770450.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