[AST/Sema/libclang] Replace getSourceRange().getBegin() with getLocStart().
- getSourceRange().getBegin() is about as awesome a pattern as .copy().size(). I already killed the hot paths so this doesn't seem to impact performance on my tests-of-the-day, but it is a much more sensible (and shorter) pattern. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152419 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/AST/ASTImporter.cpp 6 additions, 6 deletionslib/AST/ASTImporter.cpp
- lib/AST/Stmt.cpp 13 additions, 13 deletionslib/AST/Stmt.cpp
- lib/Sema/SemaDecl.cpp 30 additions, 30 deletionslib/Sema/SemaDecl.cpp
- lib/Sema/SemaDeclCXX.cpp 15 additions, 15 deletionslib/Sema/SemaDeclCXX.cpp
- lib/Sema/SemaExpr.cpp 12 additions, 11 deletionslib/Sema/SemaExpr.cpp
- lib/Sema/SemaExprCXX.cpp 13 additions, 13 deletionslib/Sema/SemaExprCXX.cpp
- lib/Sema/SemaInit.cpp 16 additions, 16 deletionslib/Sema/SemaInit.cpp
- lib/Sema/SemaOverload.cpp 20 additions, 20 deletionslib/Sema/SemaOverload.cpp
- lib/Sema/SemaTemplate.cpp 26 additions, 27 deletionslib/Sema/SemaTemplate.cpp
- lib/Sema/SemaType.cpp 6 additions, 6 deletionslib/Sema/SemaType.cpp
- tools/libclang/CIndex.cpp 5 additions, 5 deletionstools/libclang/CIndex.cpp
Loading
Please register or sign in to comment