https://bugs.llvm.org/show_bug.cgi?id=42645
Bug ID: 42645
Summary: [Clang/Format] Don't use Style.isCpp() to check for
attribute specifier availability
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: bhamilto...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
As pointed out by aaron.ballman in review of D64632:
https://reviews.llvm.org/D64632#1582859
> Clang has a feature flag to enable support for double-square bracket
> attributes in more than just C++ mode, and this is enabled by default in C2x
> mode. This check for isCpp() makes me suspect we may be doing the wrong thing
> here.
TokenAnnotator.cpp should be fixed to use this feature flag.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs