[clang] [clang-format] Support of TableGen formatting. (PR #76059)
Emilia Kond via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 22 07:12:18 PST 2023
================
@@ -111,6 +111,9 @@ const tooling::Replacements &WhitespaceManager::generateReplacements() {
alignConsecutiveDeclarations();
alignConsecutiveBitFields();
alignConsecutiveAssignments();
+ alignConsecutiveTableGenCondOperatorColons();
+ AlignConsecutiveTableGenBreakingDAGArgColons();
+ alignConsecutiveTableGenDefinition();
----------------
rymiel wrote:
Shouldn't these replacements be guarded behind an `isTableGen`? At the very least, `alignConsecutiveTableGenDefinition` aligns on TT_InheritanceColon and that can appear in non-tablegen code too
https://github.com/llvm/llvm-project/pull/76059
More information about the cfe-commits
mailing list