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.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@174503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Jasper 2013-02-06 14:22:17 +00:00
Родитель 3025e1fb94
Коммит 8ccabe4836
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -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;
}