Chromium Code Reviews| Index: src/IceGlobalInits.h |
| diff --git a/src/IceGlobalInits.h b/src/IceGlobalInits.h |
| index 08f4fe3afcc24e8c4ba00b226d094fe8a1fdb544..006ca0614e514ef00de09fc3635a6470a5de3e59 100644 |
| --- a/src/IceGlobalInits.h |
| +++ b/src/IceGlobalInits.h |
| @@ -79,8 +79,8 @@ public: |
| /// Returns true if when emitting names, we should suppress mangling. |
| virtual bool getSuppressMangling() const = 0; |
| - // Mangles name for cross tests, unless external and not defined locally |
| - // (so that relocations accross pnacl-sz and pnacl-llc will work). |
| + /// Mangles name for cross tests, unless external and not defined locally |
| + /// (so that relocations accross pnacl-sz and pnacl-llc will work). |
| virtual IceString mangleName(GlobalContext *Ctx) const { |
| return getSuppressMangling() ? Name : Ctx->mangleName(Name); |
| } |
| @@ -95,8 +95,8 @@ protected: |
| llvm::GlobalValue::LinkageTypes Linkage; |
| }; |
| -// Models a function declaration. This includes the type signature of |
| -// the function, its calling conventions, and its linkage. |
| +/// Models a function declaration. This includes the type signature of |
| +/// the function, its calling conventions, and its linkage. |
| class FunctionDeclaration : public GlobalDeclaration { |
| FunctionDeclaration() = delete; |
| FunctionDeclaration(const FunctionDeclaration &) = delete; |
| @@ -113,7 +113,7 @@ public: |
| } |
| const FuncSigType &getSignature() const { return Signature; } |
| llvm::CallingConv::ID getCallingConv() const { return CallingConv; } |
| - // isProto implies that there isn't a (local) definition for the function. |
| + /// isProto implies that there isn't a (local) definition for the function. |
| bool isProto() const { return IsProto; } |
| static bool classof(const GlobalDeclaration *Addr) { |
| return Addr->getKind() == FunctionDeclarationKind; |
| @@ -169,7 +169,7 @@ public: |
| const InitializerKind Kind; |
| }; |
| - // Models the data in a data initializer. |
| + /// Models the data in a data initializer. |
| typedef std::vector<char> DataVecType; |
| /// Defines a sequence of byte values as a data initializer. |
| @@ -205,7 +205,7 @@ public: |
| Contents[i] = Str[i]; |
| } |
| - // The byte contents of the data initializer. |
| + /// The byte contents of the data initializer. |
| DataVecType Contents; |
| }; |
| @@ -230,7 +230,7 @@ public: |
| explicit ZeroInitializer(SizeT Size) |
| : Initializer(ZeroInitializerKind), Size(Size) {} |
| - // The number of bytes to be zero initialized. |
| + /// The number of bytes to be zero initialized. |
| SizeT Size; |
| }; |
| @@ -262,7 +262,7 @@ public: |
| Offset(Offset) {} // The global declaration used in the relocation. |
| const GlobalDeclaration *Declaration; |
| - // The offset to add to the relocation. |
| + /// The offset to add to the relocation. |
| const RelocOffsetT Offset; |
| }; |
| @@ -324,14 +324,14 @@ public: |
| void discardInitializers() { Initializers = nullptr; } |
| private: |
| - // list of initializers for the declared variable. |
| + /// list of initializers for the declared variable. |
|
jvoung (off chromium)
2015/06/30 22:05:48
Capitalized "List of..."
ascull
2015/07/06 19:29:09
Done.
|
| std::unique_ptr<InitializerListType> Initializers; |
| bool HasInitializer; |
| - // The alignment of the declared variable. |
| + /// The alignment of the declared variable. |
| uint32_t Alignment; |
| - // True if a declared (global) constant. |
| + /// True if a declared (global) constant. |
| bool IsConstant; |
| - // If set to true, force getSuppressMangling() to return true. |
| + /// If set to true, force getSuppressMangling() to return true. |
| bool ForceSuppressMangling; |
| VariableDeclaration() |