[clang-tools-extra] r174503 - Remove superseeded option.

Daniel Jasper djasper at google.com
Wed Feb 6 06:22:17 PST 2013


Author: djasper
Date: Wed Feb  6 08:22:17 2013
New Revision: 174503

URL: http://llvm.org/viewvc/llvm-project?rev=174503&view=rev
Log:
Remove superseeded option.

The -invert-pointer-binding option will be superseeded by my next
cfe-commit. Instead of explicitly overwriting this flag, clang-format
can then be configured to auto-detect certain style-options based on the
input file.

Modified:
    clang-tools-extra/trunk/clang-format/ClangFormat.cpp

Modified: clang-tools-extra/trunk/clang-format/ClangFormat.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-format/ClangFormat.cpp?rev=174503&r1=174502&r2=174503&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-format/ClangFormat.cpp (original)
+++ clang-tools-extra/trunk/clang-format/ClangFormat.cpp Wed Feb  6 08:22:17 2013
@@ -41,11 +41,6 @@ static cl::opt<bool> Inplace("i",
 static cl::opt<bool> OutputXML(
     "output-replacements-xml", cl::desc("Output replacements as XML."));
 
-// FIXME: Remove this when styles are configurable through files.
-static cl::opt<bool> InvertPointerBinding(
-    "invert-pointer-binding", cl::desc("Inverts the side to which */& bind"),
-    cl::init(false));
-
 static cl::opt<std::string> FileName(cl::Positional, cl::desc("[<file>]"),
                                      cl::init("-"));
 
@@ -67,10 +62,6 @@ static FormatStyle getStyle() {
     TheStyle = getLLVMStyle();
   if (Style == "Chromium")
     TheStyle = getChromiumStyle();
-  if (InvertPointerBinding) {
-    TheStyle.PointerAndReferenceBindToType =
-        !TheStyle.PointerAndReferenceBindToType;
-  }
   return TheStyle;
 }
 





More information about the cfe-commits mailing list