//===--- IntegerLiteralSeparatorFixer.cpp -----------------------*- C++ -*-===// // // 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 IntegerLiteralSeparatorFixer that fixes C++ integer /// literal separators. /// //===----------------------------------------------------------------------===// #include "IntegerLiteralSeparatorFixer.h" namespace clang { namespace format { enum class Base { … }; static Base getBase(const StringRef IntegerLiteral) { … } std::pair<tooling::Replacements, unsigned> IntegerLiteralSeparatorFixer::process(const Environment &Env, const FormatStyle &Style) { … } bool IntegerLiteralSeparatorFixer::checkSeparator( const StringRef IntegerLiteral, int DigitsPerGroup) const { … } std::string IntegerLiteralSeparatorFixer::format(const StringRef IntegerLiteral, int DigitsPerGroup, int DigitCount, bool RemoveSeparator) const { … } } // namespace format } // namespace clang