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 | b1f67dbbb12dec8304434c76c72e01336bf186e4 (patch) | |
tree | 168e01e53f1c04a093d4119d96e7aabaf064e9b8 /docs/LibTooling.rst | |
parent | 0ee8de7fe9c1fb74574c62b9d59ffe46a94435f4 (diff) | |
download | clang-b1f67dbbb12dec8304434c76c72e01336bf186e4.tar.gz |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LibTooling.rst')
-rw-r--r-- | docs/LibTooling.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/LibTooling.rst b/docs/LibTooling.rst index d9c17f681e..8c2a126fcc 100644 --- a/docs/LibTooling.rst +++ b/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>()); } |