diff options
Diffstat (limited to 'include/clang/Tooling/Transformer/MatchConsumer.h')
-rw-r--r-- | include/clang/Tooling/Transformer/MatchConsumer.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/clang/Tooling/Transformer/MatchConsumer.h b/include/clang/Tooling/Transformer/MatchConsumer.h index 51eb6af25a..0a1dbe13ea 100644 --- a/include/clang/Tooling/Transformer/MatchConsumer.h +++ b/include/clang/Tooling/Transformer/MatchConsumer.h @@ -22,8 +22,7 @@ #include "llvm/Support/Error.h" namespace clang { -namespace tooling { - +namespace transformer { /// A failable computation over nodes bound by AST matchers. /// /// The computation should report any errors though its return value (rather @@ -52,7 +51,12 @@ MatchConsumer<T> ifBound(std::string ID, MatchConsumer<T> TrueC, return (Map.find(ID) != Map.end() ? TrueC : FalseC)(Result); }; } +} // namespace transformer +namespace tooling { +// DEPRECATED: Temporary alias supporting client migration to the `transformer` +// namespace. +using transformer::ifBound; } // namespace tooling } // namespace clang #endif // LLVM_CLANG_TOOLING_TRANSFORMER_MATCH_CONSUMER_H_ |