@@ -64,16 +64,16 @@ class VariableScope {
6464 return absl::WrapUnique (new VariableScope (*env_, this ));
6565 }
6666
67- const VariableDecl* ABSL_NULLABLE LookupVariable (
67+ const VariableDecl* absl_nullable LookupVariable (
6868 absl::string_view name) const ;
6969
7070 private:
7171 VariableScope (const TypeCheckEnv& env ABSL_ATTRIBUTE_LIFETIME_BOUND,
7272 const VariableScope* parent ABSL_ATTRIBUTE_LIFETIME_BOUND)
7373 : env_(&env), parent_(parent) {}
7474
75- const TypeCheckEnv* ABSL_NONNULL env_;
76- const VariableScope* ABSL_NULLABLE parent_;
75+ const TypeCheckEnv* absl_nonnull env_;
76+ const VariableScope* absl_nullable parent_;
7777 absl::flat_hash_map<std::string, VariableDecl> variables_;
7878};
7979
@@ -85,18 +85,18 @@ class VariableScope {
8585// This class is thread-compatible.
8686class TypeCheckEnv {
8787 private:
88- using VariableDeclPtr = const VariableDecl* ABSL_NONNULL ;
89- using FunctionDeclPtr = const FunctionDecl* ABSL_NONNULL ;
88+ using VariableDeclPtr = const VariableDecl* absl_nonnull ;
89+ using FunctionDeclPtr = const FunctionDecl* absl_nonnull ;
9090
9191 public:
9292 explicit TypeCheckEnv (
93- ABSL_NONNULL std::shared_ptr<const google::protobuf::DescriptorPool>
93+ absl_nonnull std::shared_ptr<const google::protobuf::DescriptorPool>
9494 descriptor_pool)
9595 : descriptor_pool_(std::move(descriptor_pool)),
9696 container_(" " ),
9797 parent_(nullptr ) {}
9898
99- TypeCheckEnv (ABSL_NONNULL std::shared_ptr<const google::protobuf::DescriptorPool>
99+ TypeCheckEnv (absl_nonnull std::shared_ptr<const google::protobuf::DescriptorPool>
100100 descriptor_pool,
101101 std::shared_ptr<google::protobuf::Arena> arena)
102102 : descriptor_pool_(std::move(descriptor_pool)),
@@ -166,16 +166,16 @@ class TypeCheckEnv {
166166 functions_[decl.name ()] = std::move (decl);
167167 }
168168
169- const TypeCheckEnv* ABSL_NULLABLE parent () const { return parent_; }
169+ const TypeCheckEnv* absl_nullable parent () const { return parent_; }
170170 void set_parent (TypeCheckEnv* parent) { parent_ = parent; }
171171
172172 // Returns the declaration for the given name if it is found in the current
173173 // or any parent scope.
174174 // Note: the returned declaration ptr is only valid as long as no changes are
175175 // made to the environment.
176- const VariableDecl* ABSL_NULLABLE LookupVariable (
176+ const VariableDecl* absl_nullable LookupVariable (
177177 absl::string_view name) const ;
178- const FunctionDecl* ABSL_NULLABLE LookupFunction (
178+ const FunctionDecl* absl_nullable LookupFunction (
179179 absl::string_view name) const ;
180180
181181 absl::StatusOr<absl::optional<Type>> LookupTypeName (
@@ -185,7 +185,7 @@ class TypeCheckEnv {
185185 absl::string_view type_name, absl::string_view field_name) const ;
186186
187187 absl::StatusOr<absl::optional<VariableDecl>> LookupTypeConstant (
188- google::protobuf::Arena* ABSL_NONNULL arena, absl::string_view type_name) const ;
188+ google::protobuf::Arena* absl_nonnull arena, absl::string_view type_name) const ;
189189
190190 TypeCheckEnv MakeExtendedEnvironment () const ABSL_ATTRIBUTE_LIFETIME_BOUND {
191191 return TypeCheckEnv (this );
@@ -194,24 +194,24 @@ class TypeCheckEnv {
194194 return VariableScope (*this );
195195 }
196196
197- const google::protobuf::DescriptorPool* ABSL_NONNULL descriptor_pool () const {
197+ const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool () const {
198198 return descriptor_pool_.get ();
199199 }
200200
201201 private:
202- explicit TypeCheckEnv (const TypeCheckEnv* ABSL_NONNULL parent)
202+ explicit TypeCheckEnv (const TypeCheckEnv* absl_nonnull parent)
203203 : descriptor_pool_(parent->descriptor_pool_),
204204 container_(parent != nullptr ? parent->container () : ""),
205205 parent_(parent) {}
206206
207207 absl::StatusOr<absl::optional<VariableDecl>> LookupEnumConstant (
208208 absl::string_view type, absl::string_view value) const ;
209209
210- ABSL_NONNULL std::shared_ptr<const google::protobuf::DescriptorPool> descriptor_pool_;
210+ absl_nonnull std::shared_ptr<const google::protobuf::DescriptorPool> descriptor_pool_;
211211 // If set, an arena was needed to allocate types in the environment.
212- ABSL_NULLABLE std::shared_ptr<const google::protobuf::Arena> arena_;
212+ absl_nullable std::shared_ptr<const google::protobuf::Arena> arena_;
213213 std::string container_;
214- const TypeCheckEnv* ABSL_NULLABLE parent_;
214+ const TypeCheckEnv* absl_nullable parent_;
215215
216216 // Maps fully qualified names to declarations.
217217 absl::flat_hash_map<std::string, VariableDecl> variables_;
0 commit comments