aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/CommentLexer.cpp
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2020-10-27 00:03:42 +0000
committerNathan James <n.james93@hotmail.co.uk>2020-10-27 00:03:43 +0000
commitb698ad00cbc76f34f48bb639ffb1cfee47a9737e (patch)
treeaabebe3d6dce85bbc631ad417edb71257ca1d40b /clang/lib/AST/CommentLexer.cpp
parenta5c7b46862ec0531964eb52329cdf009862abecf (diff)
downloadllvm-b698ad00cbc76f34f48bb639ffb1cfee47a9737e.zip
llvm-b698ad00cbc76f34f48bb639ffb1cfee47a9737e.tar.gz
llvm-b698ad00cbc76f34f48bb639ffb1cfee47a9737e.tar.bz2
[clang][NFC] Rearrange Comment Token and Lexer fields to reduce padding
Rearrange the fields to reduce the size of the classes Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D90127
Diffstat (limited to 'clang/lib/AST/CommentLexer.cpp')
-rw-r--r--clang/lib/AST/CommentLexer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/AST/CommentLexer.cpp b/clang/lib/AST/CommentLexer.cpp
index c1ea3ea..4bebd41 100644
--- a/clang/lib/AST/CommentLexer.cpp
+++ b/clang/lib/AST/CommentLexer.cpp
@@ -740,12 +740,11 @@ void Lexer::lexHTMLEndTag(Token &T) {
Lexer::Lexer(llvm::BumpPtrAllocator &Allocator, DiagnosticsEngine &Diags,
const CommandTraits &Traits, SourceLocation FileLoc,
- const char *BufferStart, const char *BufferEnd,
- bool ParseCommands)
+ const char *BufferStart, const char *BufferEnd, bool ParseCommands)
: Allocator(Allocator), Diags(Diags), Traits(Traits),
- BufferStart(BufferStart), BufferEnd(BufferEnd), FileLoc(FileLoc),
- BufferPtr(BufferStart), CommentState(LCS_BeforeComment), State(LS_Normal),
- ParseCommands(ParseCommands) {}
+ BufferStart(BufferStart), BufferEnd(BufferEnd), BufferPtr(BufferStart),
+ FileLoc(FileLoc), ParseCommands(ParseCommands),
+ CommentState(LCS_BeforeComment), State(LS_Normal) {}
void Lexer::lex(Token &T) {
again: