summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2022-02-22 15:43:09 +0100
committerKrasimir Georgiev <krasimir@google.com>2022-02-22 15:43:18 +0100
commitc9592ae49b8c486754a745e0c7b1a30b92a12e8b (patch)
tree1e0100962754a316db83e85b11fae08c9adda93d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentffa4dfc8de526ba28d12d62a14f984a7e1e9224b (diff)
[clang-format] Fix preprocessor nesting after commit 529aa4b011c4ae808d658022ef643c44dd9b2c9c
In https://github.com/llvm/llvm-project/commit/529aa4b011c4ae808d658022ef643c44dd9b2c9c by setting the identifier info to nullptr, we started to subtly interfere with the parts in the beginning of the function, https://github.com/llvm/llvm-project/blob/529aa4b011c4ae808d658022ef643c44dd9b2c9c/clang/lib/Format/UnwrappedLineParser.cpp#L991 causing the preprocessor nesting to change in some cases. E.g., for the added regression test, clang-format started incorrectly guessing the language as C++. This tries to address this by introducing an internal identifier info element to use instead. Reviewed By: curdeius, MyDeveloperDay Differential Revision: https://reviews.llvm.org/D120315
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions