From 524741fbbd61804a038fdb83fa022b38ed79468b Mon Sep 17 00:00:00 2001 From: Edwin Vane Date: Fri, 14 Dec 2012 18:58:25 +0000 Subject: Style and Doc fix for CommonOptionsParser - Renaming GetCompilations() and GetSourcePathList() to follow LLVM style. - Updating docs to reflect name change. - Also updating help text to not mention clang-check since this class can be used by any tool. Reviewed By: Alexander Kornienko llvm-svn: 170229 --- clang/docs/LibTooling.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/docs/LibTooling.rst') diff --git a/clang/docs/LibTooling.rst b/clang/docs/LibTooling.rst index d9c17f681ea..8c2a126fcc7 100644 --- a/clang/docs/LibTooling.rst +++ b/clang/docs/LibTooling.rst @@ -68,7 +68,7 @@ and automatic location of the compilation database using source files paths. // CompilationDatabase. In case of error it will terminate the program. CommonOptionsParser OptionsParser(argc, argv); - // Use OptionsParser.GetCompilations() and OptionsParser.GetSourcePathList() + // Use OptionsParser.getCompilations() and OptionsParser.getSourcePathList() // to retrieve CompilationDatabase and the list of input file paths. } @@ -88,7 +88,7 @@ our ``FrontendAction`` over some code. For example, to run the // We hand the CompilationDatabase we created and the sources to run over into // the tool constructor. - ClangTool Tool(OptionsParser.GetCompilations(), Sources); + ClangTool Tool(OptionsParser.getCompilations(), Sources); // The ClangTool needs a new FrontendAction for each translation unit we run // on. Thus, it takes a FrontendActionFactory as parameter. To create a @@ -125,8 +125,8 @@ tool is also checked into the clang tree at int main(int argc, const char **argv) { CommonOptionsParser OptionsParser(argc, argv); - ClangTool Tool(OptionsParser.GetCompilations(), - OptionsParser.GetSourcePathList()); + ClangTool Tool(OptionsParser.getCompilations(), + OptionsParser.getSourcePathList()); return Tool.run(newFrontendActionFactory()); } -- cgit v1.2.3