[all-commits] [llvm/llvm-project] df4ba0: [clang-format] Support of TableGen statements in u...
Hirofumi Nakamura via All-commits
all-commits at lists.llvm.org
Mon Jan 22 04:35:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: df4ba00c7b50429fa88c3a9991e9194e2422dc76
https://github.com/llvm/llvm-project/commit/df4ba00c7b50429fa88c3a9991e9194e2422dc76
Author: Hirofumi Nakamura <k.nakamura.hirofumi at gmail.com>
Date: 2024-01-22 (Mon, 22 Jan 2024)
Changed paths:
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/unittests/Format/TokenAnnotatorTest.cpp
Log Message:
-----------
[clang-format] Support of TableGen statements in unwrapped line parser (#78846)
Make TableGen's statements to be parsed considering their structure.
- Avoid to parse label
- Avoid class from being parsed as c++'s class
- Support if statement of the form `if <cond> then { ... }`
- Support defset statement of the form `defset <type> <name> {}`
---------
Co-authored-by: Björn Schäpers <github at hazardy.de>
More information about the All-commits
mailing list