llvm/clang/lib/Edit/Commit.cpp

//===- Commit.cpp - A unit of edits ---------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include "clang/Edit/Commit.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Edit/EditedSource.h"
#include "clang/Edit/FileOffset.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/PPConditionalDirectiveRecord.h"
#include "llvm/ADT/StringRef.h"
#include <cassert>
#include <utility>

usingnamespaceclang;
usingnamespaceedit;

SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const {}

CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const {}

CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const {}

Commit::Commit(EditedSource &Editor)
    :{}

bool Commit::insert(SourceLocation loc, StringRef text,
                    bool afterToken, bool beforePreviousInsertions) {}

bool Commit::insertFromRange(SourceLocation loc,
                             CharSourceRange range,
                             bool afterToken, bool beforePreviousInsertions) {}

bool Commit::remove(CharSourceRange range) {}

bool Commit::insertWrap(StringRef before, CharSourceRange range,
                        StringRef after) {}

bool Commit::replace(CharSourceRange range, StringRef text) {}

bool Commit::replaceWithInner(CharSourceRange range,
                              CharSourceRange replacementRange) {}

bool Commit::replaceText(SourceLocation loc, StringRef text,
                         StringRef replacementText) {}

void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
                       bool beforePreviousInsertions) {}

void Commit::addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
                                FileOffset RangeOffs, unsigned RangeLen,
                                bool beforePreviousInsertions) {}

void Commit::addRemove(SourceLocation OrigLoc,
                       FileOffset Offs, unsigned Len) {}

bool Commit::canInsert(SourceLocation loc, FileOffset &offs) {}

bool Commit::canInsertAfterToken(SourceLocation loc, FileOffset &offs,
                                 SourceLocation &AfterLoc) {}

bool Commit::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) {}

bool Commit::canRemoveRange(CharSourceRange range,
                            FileOffset &Offs, unsigned &Len) {}

bool Commit::canReplaceText(SourceLocation loc, StringRef text,
                            FileOffset &Offs, unsigned &Len) {}

bool Commit::isAtStartOfMacroExpansion(SourceLocation loc,
                                       SourceLocation *MacroBegin) const {}

bool Commit::isAtEndOfMacroExpansion(SourceLocation loc,
                                     SourceLocation *MacroEnd) const {}