diff options
author | Edwin Vane <edwin.vane@intel.com> | 2012-12-14 18:58:25 +0000 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2012-12-14 18:58:25 +0000 |
commit | 524741fbbd61804a038fdb83fa022b38ed79468b (patch) | |
tree | fd013173d36bf8dc5de2ae6fa6d14a3a7dfd0eeb /clang/docs/LibTooling.rst | |
parent | 164fdb607b65be8a0a637c60a098a53ef5e4cf82 (diff) | |
download | bcm5719-llvm-524741fbbd61804a038fdb83fa022b38ed79468b.tar.gz bcm5719-llvm-524741fbbd61804a038fdb83fa022b38ed79468b.zip |
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
Diffstat (limited to 'clang/docs/LibTooling.rst')
-rw-r--r-- | clang/docs/LibTooling.rst | 8 |
1 files changed, 4 insertions, 4 deletions
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<clang::SyntaxOnlyAction>()); } |