[clang] Rework the printing of attributes (PR #87281)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 2 07:13:18 PDT 2024
================
@@ -129,11 +118,13 @@ namespace {
const TemplateParameterList *Params);
void printTemplateArguments(llvm::ArrayRef<TemplateArgumentLoc> Args,
const TemplateParameterList *Params);
-
- inline void prettyPrintAttributes(Decl *D) {
- prettyPrintAttributes(D, Out);
- }
-
+ enum class AttrPosAsWritten {
+ Unknown = 0,
----------------
erichkeane wrote:
'Unknown' is likely to happen with 'implicit' attributes. Perhaps the 'CanPrintOnLeft' is worth keeping so that we can aggressively print those on the left?
https://github.com/llvm/llvm-project/pull/87281
More information about the cfe-commits
mailing list