Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
29 hours | [clang-format] Fix bugs in annotating arrows and square brackets (#160973) | owenca | 1 | -0/+14 | |
Fixes #160518 | |||||
38 hours | [clang-format][NFC] Rename a unit test | Owen Pan | 1 | -1/+1 | |
7 days | [clang-format] Add AllowBreakBeforeQtProperty option (#159909) | owenca | 1 | -0/+23 | |
The test cases are adapted from #131605. | |||||
2025-09-14 | [clang-format] Handle C digit separators (#158418) | owenca | 1 | -0/+7 | |
Fixes #158413 | |||||
2025-08-28 | [clang-format] Correctly annotate RequiresExpressionLBrace (#155773) | owenca | 1 | -0/+8 | |
Fixes #155746 | |||||
2025-08-17 | [clang-format] Don't annotate class property specifiers as StartOfName (#153525) | owenca | 1 | -0/+7 | |
Fixes #153443 | |||||
2025-07-21 | [clang-format][NFC] Clean up around StringRef initializations (#149765) | Owen Pan | 1 | -2/+2 | |
Consistently use `constexpr StringRef Code("string literal");`. | |||||
2025-07-17 | [clang-format] Fix a regression of annotating PointerOrReference (#149039) | Owen Pan | 1 | -0/+4 | |
Fixes #149010 | |||||
2025-07-10 | [clang-format] Split line comments separated by backslashes (#147648) | Owen Pan | 1 | -0/+7 | |
Fixes #147341 | |||||
2025-06-14 | [clang-format] Fix a bug in annotating braces (#144095) | Owen Pan | 1 | -0/+7 | |
Stop looking for function decls after hitting a BK_BracedInit brace. Fixes #144057. | |||||
2025-06-09 | [clang-format] Parse JSON outermost l_brace as braced list brace (#143327) | Owen Pan | 1 | -0/+14 | |
See https://github.com/llvm/llvm-project/issues/65400#issuecomment-2922181979. | |||||
2025-06-06 | [clang-format] Handle function decls with MS calling conventions (#143083) | Owen Pan | 1 | -0/+5 | |
2025-06-05 | [clang-format] Handle requires clause following a pointer type (#142893) | Owen Pan | 1 | -0/+9 | |
Fix #142818 | |||||
2025-06-02 | [clang-format] Correctly annotate token-pasted function decl names (#142337) | Owen Pan | 1 | -0/+7 | |
Fix #142178 | |||||
2025-06-01 | Revert "[clang-format] Handle token-pasted function decl names (#142251)" | Owen Pan | 1 | -7/+0 | |
This reverts commit 29f79ea3c59649f7686a09845665660c25ca3f9b which caused a regression. See https://github.com/llvm/llvm-project/pull/142251#issuecomment-2928718530. | |||||
2025-05-31 | [clang-format] Handle token-pasted function decl names (#142251) | Owen Pan | 1 | -0/+7 | |
Fix #142178 | |||||
2025-05-30 | [clang-format] Handle bit-field colon of non-numeric-constant size (#142110) | Owen Pan | 1 | -0/+8 | |
Fix #142050 | |||||
2025-05-09 | [clang-format] Handle Java record (#139215) | Owen Pan | 1 | -0/+11 | |
Fix #62089 | |||||
2025-05-07 | [clang-format] Correctly annotate ObjC `* __autoreleasing *` (#138799) | Owen Pan | 1 | -0/+6 | |
Fix #138484 | |||||
2025-05-06 | [clang-format] Fix a bug in annotating binary operator && (#138633) | Owen Pan | 1 | -0/+7 | |
Fix #138485 | |||||
2025-05-06 | [clang-format] Correctly annotate C# nullable value type `?` (#138631) | Owen Pan | 1 | -0/+13 | |
Fix #78666 | |||||
2025-05-06 | [clang-format] Don't annotate enum colon as InheritanceColon (#138440) | Owen Pan | 1 | -0/+6 | |
Fix #61156 | |||||
2025-05-03 | [clang-format] Correctly annotate tok::star in braced list (#138389) | Owen Pan | 1 | -0/+5 | |
Fix #138382 | |||||
2025-04-30 | [clang-format] Correctly annotate user-defined conversion function call ↵ | Owen Pan | 1 | -2/+8 | |
(#137914) Fix #137770 | |||||
2025-04-26 | [clang-format] Annotate tok::star in a*b*c as BinaryOperator (#137433) | Owen Pan | 1 | -0/+5 | |
Fix #137400 | |||||
2025-04-26 | [clang-format] Correctly handle C# new modifier (#137430) | Owen Pan | 1 | -0/+11 | |
Fix #75815 | |||||
2025-04-25 | [clang-format] Correctly handle C# where clause (#137295) | Owen Pan | 1 | -0/+10 | |
Fix #74947 | |||||
2025-04-22 | [clang-format] Correctly annotate kw_operator in using decls (#136545) | Owen Pan | 1 | -0/+5 | |
Fix #136541 | |||||
2025-04-22 | [clang-format] Fix a bug in lexing C++ UDL ending in $ (#136476) | Owen Pan | 1 | -0/+6 | |
Fix #61612 | |||||
2025-04-22 | [clang-format] Fix a bug in parsing C-style cast of lambdas (#136099) | Owen Pan | 1 | -0/+10 | |
Fix #135959 | |||||
2025-04-18 | [clang-format] Fix a bug in annotating TT_PointerOrReference (#136073) | Owen Pan | 1 | -0/+6 | |
Fix #135972 | |||||
2025-04-17 | [clang-format] Fix a bug in FormatToken::isObjCAccessSpecifier() (#136109) | Owen Pan | 1 | -0/+6 | |
Fix #136092 | |||||
2025-04-10 | [clang-format] Recognize TableGen paste operator on separate line (#133722) | sstwcw | 1 | -0/+22 | |
Formatting this piece of code made the program crash. ``` class TypedVecListRegOperand<RegisterClass Reg, int lanes, string eltsize> : RegisterOperand<Reg, "printTypedVectorList<" # lanes # ", '" # eltsize # "'>">; ``` The line starting with the `#` was treated as a separate preprocessor directive line. Then the code dereferenced a null pointer when it tried to continue parsing the first line that did not end in a semicolon. Now the 2 problems are fixed. | |||||
2025-04-05 | [clang-format] Set C11 instead of C17 for LK_C (#134472) | Owen Pan | 1 | -0/+6 | |
Fix #134453 | |||||
2025-04-02 | [clang-format] Fix a bug in annotating braces (#134039) | Owen Pan | 1 | -0/+5 | |
Fix #133873 | |||||
2025-03-31 | [clang-format] Correctly annotate pointer/reference in _Generic (#133673) | Owen Pan | 1 | -0/+4 | |
Fix #133663 | |||||
2025-03-27 | [clang-format] Fix a regression on annotating template angles (#132885) | Owen Pan | 1 | -2/+13 | |
Annotate the angles in `A<B != A>B` as template opener/closer as it's unlikely that they are less/greater-than operators in this context. Fix #132248 | |||||
2025-03-25 | [clang-format] Correctly annotate requires clause in `&& requires(` (#132882) | Owen Pan | 1 | -0/+9 | |
Fix #132334 | |||||
2025-03-16 | [clang-format] Correctly annotate user-defined conversion functions (#131434) | Owen Pan | 1 | -0/+50 | |
Also fix/delete existing invalid/redundant test cases. Fix #130894 | |||||
2025-03-14 | [clang-format] Add support for absl nullability macros (#130346) | Jan Voung | 1 | -0/+23 | |
Add support for formatting w/ absl nullability macros (https://github.com/abseil/abseil-cpp/blob/c52afac4f87ef76e6293b84874e5126a62be1f15/absl/base/nullability.h#L237). Example at https://godbolt.org/z/PYv19M1Gj input: ``` std::vector<int* _Nonnull> x; std::vector<int* absl_nonnull> y; ``` orig output: ``` std::vector<int* _Nonnull> x; std::vector<int * absl_nonnull> y; ``` new output: ``` std::vector<int* _Nonnull> x; std::vector<int* absl_nonnull> y; ``` credit to @ymand for the original patch | |||||
2025-03-03 | [clang-format] Lex C++ only keywords as identifiers in C (#129426) | Owen Pan | 1 | -0/+9 | |
Fix #128847 | |||||
2025-02-26 | [clang-format] Fix a bug that changes keyword `or` to an identifier (#128410) | Owen Pan | 1 | -2/+9 | |
Fixes #105482 | |||||
2025-02-18 | [clang-format] Fix a bug in annotating StartOfName (#127545) | Owen Pan | 1 | -0/+4 | |
Also ensure we can break before ClassHeadName like StartOfName. Fixes #127470 | |||||
2025-02-16 | [clang-format] Fix a bug in annotating braces (#127306) | Owen Pan | 1 | -0/+13 | |
Fixes #107616. | |||||
2025-02-14 | [clang-format] Fix a bug in annotating ObjCMethodSpecifier (#127159) | Owen Pan | 1 | -0/+7 | |
Fixes #58202. | |||||
2025-02-11 | [clang-format][NFC] Fix test case format | Owen Pan | 1 | -2/+2 | |
2025-02-08 | [clang-format] Handle C-style cast of member function pointer type (#126340) | Owen Pan | 1 | -0/+6 | |
Fixes #125012. | |||||
2025-02-01 | [clang-format] Fix a bug in annotating ClassHeadName (#125326) | Owen Pan | 1 | -0/+7 | |
2025-01-30 | [clang-format] Add ClassHeadName to help annotating StartOfName (#124891) | Owen Pan | 1 | -0/+53 | |
Fixes #124574. | |||||
2025-01-30 | [clang-format] Fix annotation of Java/JavaScript keyword extends (#125038) | Owen Pan | 1 | -0/+1 | |
Uncovered in #124891. |