search for: findfilebyname

Displaying 1 result from an estimated 1 matches for "findfilebyname".

2013 Jul 02
0
[LLVMdev] clang static analyzer annotations
...ESSION) \ GOOGLE_LOG_IF(FATAL, !(EXPRESSION)) << "CHECK failed: " #EXPRESSION ": " And the code might look like this: protobuf_AddDesc_manifest_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "manifest.proto"); GOOGLE_CHECK(file != NULL); Affine3f_descriptor_ = file->message_type(0); Resulting in a warning from the analyzer on the last line that file could be NULL. Is there a way to annotate these macros so that the analyzer doesn't flag the code? I realize...