diff options
author | Daniel Jasper <djasper@google.com> | 2012-09-20 09:24:58 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-09-20 09:24:58 +0000 |
commit | b3278162bd6d34783607d4bfe8814df73e8ef8c1 (patch) | |
tree | a4ee57d67f823f0658f6060e9aa2b59e3a7c76a8 /lib/Basic/Targets.cpp | |
parent | 2d9cc1367af4c0a8bacc99d7012d1ddaaf4236c0 (diff) |
Provide better error messages for incorrect matchers.
By changing the conversion operator into a conversion constructor, we
can enabled based on the template parameters leading to better error
messages. E.g.: stmt(decl()) will now create an error message including:
note: candidate function not viable: no known conversion from
'clang::ast_matchers::internal::BindableMatcher<clang::Decl>' to 'const
clang::ast_matchers::internal::Matcher<clang::Stmt>' for 1st argument
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions