"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/google/protobuf/compiler/annotation_test_util.h" between
protobuf-all-3.20.1.tar.gz and protobuf-all-3.21.0.tar.gz

About: Protocol Buffers (a.k.a., protobuf) are Google’s language-neutral, platform-neutral, extensible mechanism for serializing structured data.

annotation_test_util.h  (protobuf-all-3.20.1):annotation_test_util.h  (protobuf-all-3.21.0)
skipping to change at line 81 skipping to change at line 81
// annotation_unittest.cc for an example of how to initialize it. // annotation_unittest.cc for an example of how to initialize it.
// file: output parameter, will be set to the descriptor of the proto file // file: output parameter, will be set to the descriptor of the proto file
// specified in filename. // specified in filename.
bool RunProtoCompiler(const std::string& filename, bool RunProtoCompiler(const std::string& filename,
const std::string& plugin_specific_args, const std::string& plugin_specific_args,
CommandLineInterface* cli, FileDescriptorProto* file); CommandLineInterface* cli, FileDescriptorProto* file);
bool DecodeMetadata(const std::string& path, GeneratedCodeInfo* info); bool DecodeMetadata(const std::string& path, GeneratedCodeInfo* info);
// Finds all of the Annotations for a given source file and path. // Finds all of the Annotations for a given source file and path.
// See Location.path in https://github.com/protocolbuffers/protobuf/blob/master/ src/google/protobuf/descriptor.proto for // See Location.path in https://github.com/protocolbuffers/protobuf/blob/main/sr c/google/protobuf/descriptor.proto for
// explanation of what path vector is. // explanation of what path vector is.
void FindAnnotationsOnPath( void FindAnnotationsOnPath(
const GeneratedCodeInfo& info, const std::string& source_file, const GeneratedCodeInfo& info, const std::string& source_file,
const std::vector<int>& path, const std::vector<int>& path,
std::vector<const GeneratedCodeInfo::Annotation*>* annotations); std::vector<const GeneratedCodeInfo::Annotation*>* annotations);
// Finds the Annotation for a given source file and path (or returns null if it // Finds the Annotation for a given source file and path (or returns null if it
// couldn't). If there are several annotations for given path, returns the first // couldn't). If there are several annotations for given path, returns the first
// one. See Location.path in // one. See Location.path in
// https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/d escriptor.proto for explanation of what path // https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/des criptor.proto for explanation of what path
// vector is. // vector is.
const GeneratedCodeInfo::Annotation* FindAnnotationOnPath( const GeneratedCodeInfo::Annotation* FindAnnotationOnPath(
const GeneratedCodeInfo& info, const std::string& source_file, const GeneratedCodeInfo& info, const std::string& source_file,
const std::vector<int>& path); const std::vector<int>& path);
// Returns true if at least one of the provided annotations covers a given // Returns true if at least one of the provided annotations covers a given
// substring in file_content. // substring in file_content.
bool AtLeastOneAnnotationMatchesSubstring( bool AtLeastOneAnnotationMatchesSubstring(
const std::string& file_content, const std::string& file_content,
const std::vector<const GeneratedCodeInfo::Annotation*>& annotations, const std::vector<const GeneratedCodeInfo::Annotation*>& annotations,
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)