clang
6.0.0
|
#include "clang/Rewrite/Frontend/Rewriters.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Frontend/PreprocessorOutputOptions.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/Pragma.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Functions | |
static StringRef | DetectEOL (const MemoryBuffer &FromFile) |
Detect the likely line ending style of FromFile by examining the first newline found within it. More... | |
|
static |
Detect the likely line ending style of FromFile
by examining the first newline found within it.
Definition at line 233 of file InclusionRewriter.cpp.
References clang::comments::tok::eof, Filename, clang::SourceManager::getBuffer(), clang::FileEntry::getDir(), clang::SourceManager::getFileEntryForID(), clang::SourceManager::getFileOffset(), clang::Preprocessor::getHeaderSearchInfo(), clang::Token::getIdentifierInfo(), clang::Preprocessor::GetIncludeFilenameSpelling(), clang::Token::getLength(), clang::Token::getLocation(), clang::SourceManager::getMainFileID(), clang::IdentifierInfo::getName(), clang::Preprocessor::getSourceManager(), clang::Preprocessor::getSpelling(), clang::Token::is(), clang::Token::isNot(), clang::Lexer::LexFromRawLexer(), Line, clang::HeaderSearch::LookupFile(), and clang::Preprocessor::LookUpIdentifierInfo().