Lines Matching +full:clang +full:- +full:format
1 //===--- TokenAnalyzer.cpp - Analyze Token Streams --------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 /// an annotated and pre-processed token stream.
14 //===----------------------------------------------------------------------===//
23 #include "clang/Basic/Diagnostic.h"
24 #include "clang/Basic/DiagnosticOptions.h"
25 #include "clang/Basic/FileManager.h"
26 #include "clang/Basic/SourceManager.h"
27 #include "clang/Format/Format.h"
33 #define DEBUG_TYPE "format-formatter"
35 namespace clang { namespace
36 namespace format { namespace
39 // better way to return errors through the format APIs.
65 Env->SM.getDiagnostics().setClient(&Diags, /*ShouldOwnClient=*/false); in make()
66 SourceLocation StartOfFile = Env->SM.getLocForStartOfFile(Env->ID); in make()
70 Env->CharRanges.push_back(CharSourceRange::getCharRange(Start, End)); in make()
73 Env->SM.getBufferData(Env->ID); in make()
82 : VirtualSM(new SourceManagerForFile(FileName, Code)), SM(VirtualSM->get()), in Environment()
83 ID(VirtualSM->get().getMainFileID()), FirstStartColumn(FirstStartColumn), in Environment()
163 } // end namespace format
164 } // end namespace clang