diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-10-04 04:53:55 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-10-04 04:53:55 +0000 |
commit | a0d8b00ee9a3024bfd88cc75682c5fef82ce1523 (patch) | |
tree | 4487c8cec0d896105c6e701a7842a4fdbe0d16c4 /include/clang/ASTMatchers/Dynamic/Registry.h | |
parent | 982137adce752908100fb622f12648d8bb5feed7 (diff) |
SourceRanges are small and trivially copyable, don't them by reference.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/ASTMatchers/Dynamic/Registry.h')
-rw-r--r-- | include/clang/ASTMatchers/Dynamic/Registry.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/ASTMatchers/Dynamic/Registry.h b/include/clang/ASTMatchers/Dynamic/Registry.h index fc1e783a6c..3808adb11e 100644 --- a/include/clang/ASTMatchers/Dynamic/Registry.h +++ b/include/clang/ASTMatchers/Dynamic/Registry.h @@ -106,7 +106,7 @@ public: /// the signature. In that case \c Error will contain the description of /// the error. static VariantMatcher constructMatcher(MatcherCtor Ctor, - const SourceRange &NameRange, + SourceRange NameRange, ArrayRef<ParserValue> Args, Diagnostics *Error); @@ -117,7 +117,7 @@ public: /// If the matcher is not bindable, it sets an error in \c Error and returns /// a null matcher. static VariantMatcher constructBoundMatcher(MatcherCtor Ctor, - const SourceRange &NameRange, + SourceRange NameRange, StringRef BindID, ArrayRef<ParserValue> Args, Diagnostics *Error); |