summaryrefslogtreecommitdiffstats
path: root/clang/lib/ASTMatchers
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2016-02-22 22:21:58 +0000
committerHans Wennborg <hans@hanshq.net>2016-02-22 22:21:58 +0000
commit157a5d5312bda0ed8da6a434ebcecfe6e646c63e (patch)
tree7c0142c729a970d649347622ee4c705d6ed26fbc /clang/lib/ASTMatchers
parentc5f76f73474499012b9559e917ec2368b659618a (diff)
downloadbcm5719-llvm-157a5d5312bda0ed8da6a434ebcecfe6e646c63e.tar.gz
bcm5719-llvm-157a5d5312bda0ed8da6a434ebcecfe6e646c63e.zip
Fix Visual Studio build after r261574
llvm-svn: 261583
Diffstat (limited to 'clang/lib/ASTMatchers')
-rw-r--r--clang/lib/ASTMatchers/ASTMatchersInternal.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/ASTMatchers/ASTMatchersInternal.cpp b/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
index ad785b5d61c..ed48d7718a2 100644
--- a/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
+++ b/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
@@ -369,7 +369,7 @@ public:
/// Return true if there are still any patterns left.
bool consumeNameSuffix(StringRef NodeName, bool CanSkip) {
for (size_t I = 0; I < Patterns.size();) {
- if (internal::consumeNameSuffix(Patterns[I].Pattern, NodeName) ||
+ if (internal::consumeNameSuffix(Patterns[I].P, NodeName) ||
CanSkip) {
++I;
} else {
@@ -384,14 +384,14 @@ public:
/// 'fully qualified' requirement.
bool foundMatch(bool AllowFullyQualified) const {
for (auto& P: Patterns)
- if (P.Pattern.empty() && (AllowFullyQualified || !P.IsFullyQualified))
+ if (P.P.empty() && (AllowFullyQualified || !P.IsFullyQualified))
return true;
return false;
}
private:
struct Pattern {
- StringRef Pattern;
+ StringRef P;
bool IsFullyQualified;
};
llvm::SmallVector<Pattern, 8> Patterns;
OpenPOWER on IntegriCloud