[all-commits] [llvm/llvm-project] e3c832: Fix override keyword being print to the left side
Giuliano Belinassi via All-commits
all-commits at lists.llvm.org
Tue Apr 16 16:21:48 PDT 2024
Branch: refs/heads/release/18.x
Home: https://github.com/llvm/llvm-project
Commit: e3c832b37b0a7b97eb16eaff2dda747093a858e2
https://github.com/llvm/llvm-project/commit/e3c832b37b0a7b97eb16eaff2dda747093a858e2
Author: Giuliano Belinassi <gbelinassi at suse.de>
Date: 2024-04-16 (Tue, 16 Apr 2024)
Changed paths:
M clang/include/clang/Basic/Attr.td
A clang/test/AST/ast-dump-override-final.cpp
Log Message:
-----------
Fix override keyword being print to the left side
Previously, the `override` keyword in C++ was being print in the left
side of a method decl, which is unsupported by C++ standard. This commit
fixes that by setting the `CanPrintOnLeft` field to 0, forcing it to be
print on the right side of the decl.
Signed-off-by: Giuliano Belinassi <gbelinassi at suse.de>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list