[all-commits] [llvm/llvm-project] b0758f: [clang-format] Fix mis-attributing preprocessor di...
Jacob Abraham via All-commits
all-commits at lists.llvm.org
Mon Oct 10 19:58:27 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0758f62afb6945edfb2046da10b338bb6ced474
https://github.com/llvm/llvm-project/commit/b0758f62afb6945edfb2046da10b338bb6ced474
Author: Jacob Abraham <jacob.r.abraham at gmail.com>
Date: 2022-10-10 (Mon, 10 Oct 2022)
Changed paths:
M clang/lib/Format/UnwrappedLineFormatter.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Fix mis-attributing preprocessor directives to macros
This solves the issue where a case statement inside a macro greedily
adds preprocessor lines such as #include to the macro even if they
are not a part of the macro to begin with.
Fixes #58214.
Differential Revision: https://reviews.llvm.org/D135422
More information about the All-commits
mailing list