[all-commits] [llvm/llvm-project] 8e5de6: [clang-format] Fix clang-format issue with 'new' a...
scythris via All-commits
all-commits at lists.llvm.org
Sun Mar 17 13:06:54 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e5de66af3da8c2fc79b8fe2cbc26f94b677434d
https://github.com/llvm/llvm-project/commit/8e5de66af3da8c2fc79b8fe2cbc26f94b677434d
Author: scythris <118685935+scythris at users.noreply.github.com>
Date: 2024-03-17 (Sun, 17 Mar 2024)
Changed paths:
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Fix clang-format issue with 'new' and 'delete' keywords in C files (#85470)
This resolves an issue in clang-format where `new` and `delete` were
incorrectly formatted as keywords in C files. The fix modifies
`TokenAnnotator::spaceRequiredBetween` to handle `new` and `delete` when
used as identifiers for function pointers in structs in C code.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list