[clang] [clang] support Wold-style-declaration (PR #78837)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 20 12:01:01 PST 2024


================
@@ -4104,6 +4106,7 @@ void Parser::ParseDeclarationSpecifiers(
         isInvalid = true;
       } else {
         isInvalid = DS.setFunctionSpecVirtual(Loc, PrevSpec, DiagID);
+        isFunctionSpecifier = true;
----------------
AaronBallman wrote:

C doesn't have virtual functions, so no need for this change.

https://github.com/llvm/llvm-project/pull/78837


More information about the cfe-commits mailing list