Displaying 1 result from an estimated 1 matches for "protobuf_adddesc_manifest_2eproto".
2013 Jul 02
0
[LLVMdev] clang static analyzer annotations
...GLEVEL_##LEVEL, __FILE__, __LINE__)
#define GOOGLE_LOG_IF(LEVEL, CONDITION) \
!(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)
#define GOOGLE_CHECK(EXPRESSION) \
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 las...