mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-01 20:24:40 +01:00
fix pointer style to match the style guide
We do this in a lot of places, but we're inconsistent. Normalize the code to the Google C++ style guide. Change-Id: Ic2aceab661ce8f6b993dda21b1cdf5d2198dcbbf Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2262932 Reviewed-by: Sterling Augustine <saugustine@google.com> Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
a741027533
commit
09b056975d
289 changed files with 3770 additions and 3775 deletions
|
|
@ -61,38 +61,38 @@ class ModuleSerializer {
|
|||
public:
|
||||
// Compute the size of memory required to serialize a module. Return the
|
||||
// total size needed for serialization.
|
||||
size_t SizeOf(const BasicSourceLineResolver::Module &module);
|
||||
size_t SizeOf(const BasicSourceLineResolver::Module& module);
|
||||
|
||||
// Write a module into an allocated memory chunk with required size.
|
||||
// Return the "end" of data, i.e., the address after the final byte of data.
|
||||
char* Write(const BasicSourceLineResolver::Module &module, char *dest);
|
||||
char* Write(const BasicSourceLineResolver::Module& module, char* dest);
|
||||
|
||||
// Serializes a loaded Module object into a chunk of memory data and returns
|
||||
// the address of memory chunk. If size != NULL, *size is set to the memory
|
||||
// size allocated for the serialized data.
|
||||
// Caller takes the ownership of the memory chunk (allocated on heap), and
|
||||
// owner should call delete [] to free the memory after use.
|
||||
char* Serialize(const BasicSourceLineResolver::Module &module,
|
||||
unsigned int *size = NULL);
|
||||
char* Serialize(const BasicSourceLineResolver::Module& module,
|
||||
unsigned int* size = NULL);
|
||||
|
||||
// Given the string format symbol_data, produces a chunk of serialized data.
|
||||
// Caller takes ownership of the serialized data (on heap), and owner should
|
||||
// call delete [] to free the memory after use.
|
||||
char* SerializeSymbolFileData(const string &symbol_data,
|
||||
unsigned int *size = NULL);
|
||||
char* SerializeSymbolFileData(const string& symbol_data,
|
||||
unsigned int* size = NULL);
|
||||
|
||||
// Serializes one loaded module with given moduleid in the basic source line
|
||||
// resolver, and loads the serialized data into the fast source line resolver.
|
||||
// Return false if the basic source line doesn't have a module with the given
|
||||
// moduleid.
|
||||
bool ConvertOneModule(const string &moduleid,
|
||||
const BasicSourceLineResolver *basic_resolver,
|
||||
FastSourceLineResolver *fast_resolver);
|
||||
bool ConvertOneModule(const string& moduleid,
|
||||
const BasicSourceLineResolver* basic_resolver,
|
||||
FastSourceLineResolver* fast_resolver);
|
||||
|
||||
// Serializes all the loaded modules in a basic source line resolver, and
|
||||
// loads the serialized data into a fast source line resolver.
|
||||
void ConvertAllModules(const BasicSourceLineResolver *basic_resolver,
|
||||
FastSourceLineResolver *fast_resolver);
|
||||
void ConvertAllModules(const BasicSourceLineResolver* basic_resolver,
|
||||
FastSourceLineResolver* fast_resolver);
|
||||
|
||||
private:
|
||||
// Convenient type names.
|
||||
|
|
@ -102,8 +102,8 @@ class ModuleSerializer {
|
|||
|
||||
// Internal implementation for ConvertOneModule and ConvertAllModules methods.
|
||||
bool SerializeModuleAndLoadIntoFastResolver(
|
||||
const BasicSourceLineResolver::ModuleMap::const_iterator &iter,
|
||||
FastSourceLineResolver *fast_resolver);
|
||||
const BasicSourceLineResolver::ModuleMap::const_iterator& iter,
|
||||
FastSourceLineResolver* fast_resolver);
|
||||
|
||||
// Number of Maps that Module class contains.
|
||||
static const int32_t kNumberMaps_ =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue