[clang] [clang-format] Handle C++ Core Guidelines suppression tags (PR #86458)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 26 11:58:01 PDT 2024
================
@@ -4827,6 +4827,10 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line,
Right.is(TT_TemplateOpener)) {
return true;
}
+ if (Left.is(tok::identifier) && Right.is(tok::numeric_constant) &&
+ Right.TokenText[0] == '.') {
----------------
HazardyKnusperkeks wrote:
So I figured, but wouldn't that now also happen with `type .5`? And `type 5` is invalid code to begin with.
https://github.com/llvm/llvm-project/pull/86458
More information about the cfe-commits
mailing list