[cfe-commits] r149645 - in /cfe/trunk: include/clang/Driver/CC1Options.td include/clang/Frontend/DependencyOutputOptions.h lib/Frontend/CompilerInstance.cpp lib/Frontend/CompilerInvocation.cpp lib/Frontend/DependencyGraph.cpp
Douglas Gregor
dgregor at apple.com
Thu Feb 2 15:45:13 PST 2012
Author: dgregor
Date: Thu Feb 2 17:45:13 2012
New Revision: 149645
URL: http://llvm.org/viewvc/llvm-project?rev=149645&view=rev
Log:
Rename -dependency-graphviz to -dependencncy-dot
Modified:
cfe/trunk/include/clang/Driver/CC1Options.td
cfe/trunk/include/clang/Frontend/DependencyOutputOptions.h
cfe/trunk/lib/Frontend/CompilerInstance.cpp
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
cfe/trunk/lib/Frontend/DependencyGraph.cpp
Modified: cfe/trunk/include/clang/Driver/CC1Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1Options.td?rev=149645&r1=149644&r2=149645&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/CC1Options.td (original)
+++ cfe/trunk/include/clang/Driver/CC1Options.td Thu Feb 2 17:45:13 2012
@@ -233,8 +233,8 @@
def dependency_file : Separate<"-dependency-file">,
HelpText<"Filename (or -) to write dependency output to">;
-def dependency_graphviz : Separate<"-dependency-graphviz">,
- HelpText<"Filename to write GraphViz-formatted header dependencies to">;
+def dependency_dot : Separate<"-dependency-dot">,
+ HelpText<"Filename to write DOT-formatted header dependencies to">;
def sys_header_deps : Flag<"-sys-header-deps">,
HelpText<"Include system headers in dependency output">;
def header_include_file : Separate<"-header-include-file">,
Modified: cfe/trunk/include/clang/Frontend/DependencyOutputOptions.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/DependencyOutputOptions.h?rev=149645&r1=149644&r2=149645&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/DependencyOutputOptions.h (original)
+++ cfe/trunk/include/clang/Frontend/DependencyOutputOptions.h Thu Feb 2 17:45:13 2012
@@ -40,7 +40,7 @@
std::vector<std::string> Targets;
/// \brief The file to write GraphViz-formatted header dependencies to.
- std::string GraphvizOutputFile;
+ std::string DOTOutputFile;
public:
DependencyOutputOptions() {
Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=149645&r1=149644&r2=149645&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Thu Feb 2 17:45:13 2012
@@ -275,8 +275,8 @@
const DependencyOutputOptions &DepOpts = getDependencyOutputOpts();
if (!DepOpts.OutputFile.empty())
AttachDependencyFileGen(*PP, DepOpts);
- if (!DepOpts.GraphvizOutputFile.empty())
- AttachDependencyGraphGen(*PP, DepOpts.GraphvizOutputFile,
+ if (!DepOpts.DOTOutputFile.empty())
+ AttachDependencyGraphGen(*PP, DepOpts.DOTOutputFile,
getHeaderSearchOpts().Sysroot);
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=149645&r1=149644&r2=149645&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Thu Feb 2 17:45:13 2012
@@ -1191,7 +1191,7 @@
Opts.ShowHeaderIncludes = Args.hasArg(OPT_H);
Opts.HeaderIncludeOutputFile = Args.getLastArgValue(OPT_header_include_file);
Opts.AddMissingHeaderDeps = Args.hasArg(OPT_MG);
- Opts.GraphvizOutputFile = Args.getLastArgValue(OPT_dependency_graphviz);
+ Opts.DOTOutputFile = Args.getLastArgValue(OPT_dependency_dot);
}
static bool ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args,
Modified: cfe/trunk/lib/Frontend/DependencyGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/DependencyGraph.cpp?rev=149645&r1=149644&r2=149645&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/DependencyGraph.cpp (original)
+++ cfe/trunk/lib/Frontend/DependencyGraph.cpp Thu Feb 2 17:45:13 2012
@@ -7,7 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
-// This code generates a header dependency graph in GraphViz format.
+// This code generates a header dependency graph in DOT format, for use
+// with, e.g., GraphViz.
//
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list