aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-12 23:52:56 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-12 23:52:56 +0000
commitc86804bc9c3f1953520b59084c9ad75104aba123 (patch)
treecd4b9473d6d114c17cd55fbddf679fdb78cae7ca /include/clang
parent1417c74b825a621a10466b1d5f767553fccab24e (diff)
Move FixItAtLocations into FrontendOptions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Frontend/CommandLineSourceLoc.h3
-rw-r--r--include/clang/Frontend/FrontendOptions.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/include/clang/Frontend/CommandLineSourceLoc.h b/include/clang/Frontend/CommandLineSourceLoc.h
index 59f70ede91..d5a0598dfa 100644
--- a/include/clang/Frontend/CommandLineSourceLoc.h
+++ b/include/clang/Frontend/CommandLineSourceLoc.h
@@ -1,3 +1,4 @@
+
//===--- CommandLineSourceLoc.h - Parsing for source locations-*- C++ -*---===//
//
// The LLVM Compiler Infrastructure
@@ -37,7 +38,7 @@ namespace llvm {
class parser<clang::ParsedSourceLocation>
: public basic_parser<clang::ParsedSourceLocation> {
public:
- bool parse(Option &O, StringRef ArgName, StringRef ArgValue,
+ inline bool parse(Option &O, StringRef ArgName, StringRef ArgValue,
clang::ParsedSourceLocation &Val);
};
diff --git a/include/clang/Frontend/FrontendOptions.h b/include/clang/Frontend/FrontendOptions.h
index da177bc037..27897a240f 100644
--- a/include/clang/Frontend/FrontendOptions.h
+++ b/include/clang/Frontend/FrontendOptions.h
@@ -10,6 +10,7 @@
#ifndef LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
#define LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
+#include "clang/Frontend/CommandLineSourceLoc.h"
#include <string>
#include <vector>
@@ -36,6 +37,9 @@ public:
/// If given, the name for a C++ class to view the inheritance of.
std::string ViewClassInheritance;
+ /// A list of locations to apply fix-its at.
+ std::vector<ParsedSourceLocation> FixItLocations;
+
public:
FrontendOptions() {
DisableFree = 0;