aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-29 01:53:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-29 01:53:18 +0000
commitbea5a84ea65f67a55b62df726ed08565d297b768 (patch)
tree3b70763eea6bde65275842b346ec0d7b0db94b3a
parent6ebd79b58cd9dce05b98e9993783891b9a959302 (diff)
Formatting fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85468 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/clang-cc/clang-cc.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp
index 4078331e26..293c2b8cdb 100644
--- a/tools/clang-cc/clang-cc.cpp
+++ b/tools/clang-cc/clang-cc.cpp
@@ -899,7 +899,7 @@ static void HandleMacOSVersionMin(llvm::Triple &Triple) {
"-mmacosx-version-min only valid for darwin (Mac OS X) targets\n");
exit(1);
}
-
+
// Validate that MacOSVersionMin is a 'version number', starting with 10.[3-9]
if (MacOSVersionMin.size() < 4 ||
MacOSVersionMin.substr(0, 3) != "10." ||
@@ -909,11 +909,11 @@ static void HandleMacOSVersionMin(llvm::Triple &Triple) {
MacOSVersionMin.c_str());
exit(1);
}
-
+
unsigned VersionNum = MacOSVersionMin[3]-'0';
llvm::SmallString<16> NewDarwinString;
NewDarwinString += "darwin";
-
+
// Turn MacOSVersionMin into a darwin number: e.g. 10.3.9 is 3 -> darwin7.
VersionNum += 4;
if (VersionNum > 9) {
@@ -967,7 +967,7 @@ static void HandleIPhoneOSVersionMin(llvm::Triple &Triple) {
IPhoneOSVersionMin.c_str());
exit(1);
}
-
+
// Turn IPhoneOSVersionMin into a darwin number: e.g. 2.0 is 2 -> 9.2.0
llvm::SmallString<16> NewDarwinString;
NewDarwinString += "darwin9.";
@@ -2073,25 +2073,25 @@ static void ProcessInputFile(Preprocessor &PP, PreprocessorFactory &PPF,
if (InitializeSourceManager(PP, InFile))
return;
}
-
+
// If we have an ASTConsumer, run the parser with it.
if (Consumer) {
CodeCompleteConsumer *(*CreateCodeCompleter)(Sema &, void *) = 0;
void *CreateCodeCompleterData = 0;
-
+
if (!CodeCompletionAt.FileName.empty()) {
// Tell the source manager to chop off the given file at a specific
// line and column.
- if (const FileEntry *Entry
+ if (const FileEntry *Entry
= PP.getFileManager().getFile(CodeCompletionAt.FileName)) {
// Truncate the named file at the given line/column.
PP.getSourceManager().truncateFileAt(Entry, CodeCompletionAt.Line,
CodeCompletionAt.Column);
-
+
// Set up the creation routine for code-completion.
CreateCodeCompleter = BuildPrintingCodeCompleter;
} else {
- PP.getDiagnostics().Report(FullSourceLoc(),
+ PP.getDiagnostics().Report(FullSourceLoc(),
diag::err_fe_invalid_code_complete_file)
<< CodeCompletionAt.FileName;
}
@@ -2340,7 +2340,7 @@ int main(int argc, char **argv) {
// Get information about the target being compiled for.
llvm::Triple Triple = CreateTargetTriple();
- llvm::OwningPtr<TargetInfo>
+ llvm::OwningPtr<TargetInfo>
Target(TargetInfo::CreateTargetInfo(Triple.getTriple()));
if (Target == 0) {
@@ -2381,8 +2381,8 @@ int main(int argc, char **argv) {
continue;
}
- /// Create a SourceManager object. This tracks and owns all the file
- /// buffers allocated to a translation unit.
+ // Create a SourceManager object. This tracks and owns all the file
+ // buffers allocated to a translation unit.
if (!SourceMgr)
SourceMgr.reset(new SourceManager());
else