Allow getting all source locations of selector identifiers in a ObjCMethodDecl.
Instead of always storing all source locations for the selector identifiers we check whether all the identifiers are in a "standard" position; "standard" position is -Immediately before the arguments: -(id)first:(int)x second:(int)y; -With a space between the arguments: -(id)first: (int)x second: (int)y; -For nullary selectors, immediately before ';': -(void)release; In such cases we infer the locations instead of storing them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140989 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/DeclObjC.h 88 additions, 14 deletionsinclude/clang/AST/DeclObjC.h
- include/clang/AST/ExprObjC.h 2 additions, 2 deletionsinclude/clang/AST/ExprObjC.h
- include/clang/AST/SelectorLocationsKind.h 19 additions, 0 deletionsinclude/clang/AST/SelectorLocationsKind.h
- lib/AST/ASTContext.cpp 3 additions, 3 deletionslib/AST/ASTContext.cpp
- lib/AST/ASTImporter.cpp 3 additions, 3 deletionslib/AST/ASTImporter.cpp
- lib/AST/DeclObjC.cpp 36 additions, 1 deletionlib/AST/DeclObjC.cpp
- lib/AST/SelectorLocationsKind.cpp 23 additions, 0 deletionslib/AST/SelectorLocationsKind.cpp
- lib/CodeGen/CGCall.cpp 1 addition, 1 deletionlib/CodeGen/CGCall.cpp
- lib/CodeGen/CGDebugInfo.cpp 1 addition, 1 deletionlib/CodeGen/CGDebugInfo.cpp
- lib/CodeGen/CGObjC.cpp 1 addition, 1 deletionlib/CodeGen/CGObjC.cpp
- lib/CodeGen/CodeGenModule.cpp 0 additions, 2 deletionslib/CodeGen/CodeGenModule.cpp
- lib/Sema/SemaDecl.cpp 2 additions, 1 deletionlib/Sema/SemaDecl.cpp
- lib/Sema/SemaDeclObjC.cpp 8 additions, 7 deletionslib/Sema/SemaDeclObjC.cpp
- lib/Sema/SemaExpr.cpp 2 additions, 2 deletionslib/Sema/SemaExpr.cpp
- lib/Sema/SemaObjCProperty.cpp 3 additions, 3 deletionslib/Sema/SemaObjCProperty.cpp
- lib/Serialization/ASTReaderDecl.cpp 9 additions, 2 deletionslib/Serialization/ASTReaderDecl.cpp
- lib/Serialization/ASTWriterDecl.cpp 8 additions, 0 deletionslib/Serialization/ASTWriterDecl.cpp
- lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp 1 addition, 1 deletionlib/StaticAnalyzer/Checkers/NSErrorChecker.cpp
- lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp 4 additions, 3 deletionslib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
Loading
Please register or sign in to comment