llvm/clang/lib/Basic/SourceLocation.cpp

//===- SourceLocation.cpp - Compact identifier for Source Files -----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
//  This file defines accessor methods for the FullSourceLoc class.
//
//===----------------------------------------------------------------------===//

#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/PrettyStackTrace.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <string>
#include <utility>

usingnamespaceclang;

//===----------------------------------------------------------------------===//
// PrettyStackTraceLoc
//===----------------------------------------------------------------------===//

void PrettyStackTraceLoc::print(raw_ostream &OS) const {}

//===----------------------------------------------------------------------===//
// SourceLocation
//===----------------------------------------------------------------------===//

static_assert;

static_assert;

unsigned SourceLocation::getHashValue() const {}

void llvm::FoldingSetTrait<SourceLocation>::Profile(
    const SourceLocation &X, llvm::FoldingSetNodeID &ID) {}

void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{}

LLVM_DUMP_METHOD std::string
SourceLocation::printToString(const SourceManager &SM) const {}

LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const {}

LLVM_DUMP_METHOD void SourceRange::dump(const SourceManager &SM) const {}

static PresumedLoc PrintDifference(raw_ostream &OS, const SourceManager &SM,
                                   SourceLocation Loc, PresumedLoc Previous) {}

void SourceRange::print(raw_ostream &OS, const SourceManager &SM) const {}

LLVM_DUMP_METHOD std::string
SourceRange::printToString(const SourceManager &SM) const {}

//===----------------------------------------------------------------------===//
// FullSourceLoc
//===----------------------------------------------------------------------===//

FileID FullSourceLoc::getFileID() const {}

FullSourceLoc FullSourceLoc::getExpansionLoc() const {}

std::pair<FileID, unsigned> FullSourceLoc::getDecomposedExpansionLoc() const {}

FullSourceLoc FullSourceLoc::getSpellingLoc() const {}

FullSourceLoc FullSourceLoc::getFileLoc() const {}

PresumedLoc FullSourceLoc::getPresumedLoc(bool UseLineDirectives) const {}

bool FullSourceLoc::isMacroArgExpansion(FullSourceLoc *StartLoc) const {}

FullSourceLoc FullSourceLoc::getImmediateMacroCallerLoc() const {}

std::pair<FullSourceLoc, StringRef> FullSourceLoc::getModuleImportLoc() const {}

unsigned FullSourceLoc::getFileOffset() const {}

unsigned FullSourceLoc::getLineNumber(bool *Invalid) const {}

unsigned FullSourceLoc::getColumnNumber(bool *Invalid) const {}

const FileEntry *FullSourceLoc::getFileEntry() const {}

OptionalFileEntryRef FullSourceLoc::getFileEntryRef() const {}

unsigned FullSourceLoc::getExpansionLineNumber(bool *Invalid) const {}

unsigned FullSourceLoc::getExpansionColumnNumber(bool *Invalid) const {}

unsigned FullSourceLoc::getSpellingLineNumber(bool *Invalid) const {}

unsigned FullSourceLoc::getSpellingColumnNumber(bool *Invalid) const {}

bool FullSourceLoc::isInSystemHeader() const {}

bool FullSourceLoc::isBeforeInTranslationUnitThan(SourceLocation Loc) const {}

LLVM_DUMP_METHOD void FullSourceLoc::dump() const {}

const char *FullSourceLoc::getCharacterData(bool *Invalid) const {}

StringRef FullSourceLoc::getBufferData(bool *Invalid) const {}

std::pair<FileID, unsigned> FullSourceLoc::getDecomposedLoc() const {}