Addressed review's comments.

llvm-svn: 267858
This commit is contained in:
Eric Liu 2016-04-28 07:51:47 +00:00
parent bc5f581d47
commit c5cad396dd
2 changed files with 4 additions and 2 deletions

View File

@ -56,6 +56,7 @@ private:
// Returns \c true if line or one if its children is affected.
bool nonPPLineAffected(AnnotatedLine *Line,
const AnnotatedLine *PreviousLine);
SourceManager &SourceMgr;
const SmallVector<CharSourceRange, 8> Ranges;
};
@ -63,4 +64,5 @@ private:
} // namespace format
} // namespace clang
#endif // LLVM_CLANG_LIB_FORMAT_WHITESPACEMANAGER_H
#endif // LLVM_CLANG_LIB_FORMAT_AFFECTEDRANGEMANAGER_H
#

View File

@ -1460,7 +1460,7 @@ public:
std::unique_ptr<FileManager> FileMgr,
std::unique_ptr<SourceManager> VirtualSM,
std::unique_ptr<DiagnosticsEngine> Diagnostics,
std::vector<CharSourceRange> CharRanges)
const std::vector<CharSourceRange> &CharRanges)
: Style(Style), ID(ID), CharRanges(CharRanges.begin(), CharRanges.end()),
SM(*VirtualSM), FileMgr(std::move(FileMgr)),
VirtualSM(std::move(VirtualSM)), Diagnostics(std::move(Diagnostics)) {}