summaryrefslogtreecommitdiffstats
path: root/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp
diff options
context:
space:
mode:
authorSamuel Benzaquen <sbenza@google.com>2013-06-20 14:28:32 +0000
committerSamuel Benzaquen <sbenza@google.com>2013-06-20 14:28:32 +0000
commit81ef929b8f0fc5bbbe6d7edbde38670bd26f8a5e (patch)
treecf62c7e9897b154061b7c94e4e65b8c1bd23639c /clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp
parentca692609d0547908b95e884b881a6bb2f985126b (diff)
downloadbcm5719-llvm-81ef929b8f0fc5bbbe6d7edbde38670bd26f8a5e.tar.gz
bcm5719-llvm-81ef929b8f0fc5bbbe6d7edbde38670bd26f8a5e.zip
Enhancements for the DynTypedMatcher system.
- Added conversion routines and checks in Matcher<T> that take a DynTypedMatcher. - Added type information on the error messages for the marshallers. - Allows future work on Polymorphic/overloaded matchers. We should be able to disambiguate at runtime and choose the appropriate overload. llvm-svn: 184429
Diffstat (limited to 'clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp')
-rw-r--r--clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp b/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp
index 79c9389cf5f..6b1d6609a21 100644
--- a/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp
+++ b/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp
@@ -36,7 +36,7 @@ StringRef ErrorTypeToString(Diagnostics::ErrorType Type) {
case Diagnostics::ET_RegistryWrongArgCount:
return "Incorrect argument count. (Expected = $0) != (Actual = $1)";
case Diagnostics::ET_RegistryWrongArgType:
- return "Incorrect type on function $0 for arg $1.";
+ return "Incorrect type for arg $0. (Expected = $1) != (Actual = $2)";
case Diagnostics::ET_RegistryNotBindable:
return "Matcher does not support binding.";
OpenPOWER on IntegriCloud