| 1234567891011121314151617181920212223242526 |
- // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- // Exceptions. See /LICENSE for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- #ifndef MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_
- #define MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_
- #include "migrate_cpp/cpp_refactoring/matcher.h"
- namespace Carbon {
- // Updates variable declarations for `var name: Type`.
- class VarDecl : public Matcher {
- public:
- explicit VarDecl(std::map<std::string, Replacements>& in_replacements,
- MatchFinder* finder);
- void run(const MatchFinder::MatchResult& result) override;
- private:
- static constexpr char Label[] = "VarDecl";
- };
- } // namespace Carbon
- #endif // MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_
|