llvm/clang/lib/Format/FormatToken.cpp

//===--- FormatToken.cpp - Format C++ code --------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
///
/// \file
/// This file implements specific functions of \c FormatTokens and their
/// roles.
///
//===----------------------------------------------------------------------===//

#include "FormatToken.h"
#include "ContinuationIndenter.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include <climits>

namespace clang {
namespace format {

const char *getTokenTypeName(TokenType Type) {}

// Sorted common C++ non-keyword types.
static SmallVector<StringRef> CppNonKeywordTypes =;

bool FormatToken::isTypeName(const LangOptions &LangOpts) const {}

bool FormatToken::isTypeOrIdentifier(const LangOptions &LangOpts) const {}

bool FormatToken::isBlockIndentedInitRBrace(const FormatStyle &Style) const {}

bool FormatToken::opensBlockOrBlockTypeList(const FormatStyle &Style) const {}

TokenRole::~TokenRole() {}

void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {}

unsigned CommaSeparatedList::formatAfterToken(LineState &State,
                                              ContinuationIndenter *Indenter,
                                              bool DryRun) {}

unsigned CommaSeparatedList::formatFromToken(LineState &State,
                                             ContinuationIndenter *Indenter,
                                             bool DryRun) {}

// Returns the lengths in code points between Begin and End (both included),
// assuming that the entire sequence is put on a single line.
static unsigned CodePointsBetween(const FormatToken *Begin,
                                  const FormatToken *End) {}

void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) {}

const CommaSeparatedList::ColumnFormat *
CommaSeparatedList::getColumnFormat(unsigned RemainingCharacters) const {}

bool startsNextParameter(const FormatToken &Current, const FormatStyle &Style) {}

} // namespace format
} // namespace clang