Rather than duplicating data fields, use DeclSpec directly to store qualifiers for the functions/methods.
This change is discussed in the following comment:
https://reviews.llvm.org/D55850#inline-495037
Paths
| Differential D55948
Modify DeclaratorChuck::getFunction to use DeclSpec for qualifiers ClosedPublic Authored by Anastasia on Dec 20 2018, 12:31 PM.
Details Summary Rather than duplicating data fields, use DeclSpec directly to store qualifiers for the functions/methods. This change is discussed in the following comment:
Diff Detail Event Timeline
Anastasia added inline comments.
Anastasia added inline comments.
Anastasia marked an inline comment as done. Comment Actions
This revision is now accepted and ready to land.Jan 7 2019, 12:28 PM Closed by commit rC350703: Use DeclSpec for quals in DeclaratorChunk::FunctionTypeInfo. (authored by stulova). · Explain WhyJan 9 2019, 3:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 180226 include/clang/Sema/DeclSpec.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Sema/DeclSpec.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaType.cpp
|
Can we give this a better name? I know we use "type qualifiers" for this concept in the AST, but it's not a good name, and we should really rename it in the AST. How about MethodQualifiers?