clang
23.0.0git
include
clang
ScalableStaticAnalysis
SourceTransformation
YAMLSourceEditFormat.h
Go to the documentation of this file.
1
//===- YAMLSourceEditFormat.h -----------------------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// Built-in YAML source-edit writer. The on-disk layout is the existing
10
// `clang::tooling::TranslationUnitReplacements` YAML schema, byte-for-byte
11
// consumable by `clang-apply-replacements`.
12
//
13
//===----------------------------------------------------------------------===//
14
15
#ifndef LLVM_CLANG_SCALABLESTATICANALYSIS_SOURCETRANSFORMATION_YAMLSOURCEEDITFORMAT_H
16
#define LLVM_CLANG_SCALABLESTATICANALYSIS_SOURCETRANSFORMATION_YAMLSOURCEEDITFORMAT_H
17
18
#include "
clang/Tooling/Core/Replacement.h
"
19
#include "llvm/ADT/StringRef.h"
20
#include "llvm/Support/Error.h"
21
22
namespace
clang::ssaf
{
23
24
/// Writes \p Doc to \p Path as a YAML document compatible with
25
/// `clang-apply-replacements`.
26
llvm::Error
27
writeYAMLSourceEdits
(
const
clang::tooling::TranslationUnitReplacements &Doc,
28
llvm::StringRef Path);
29
30
}
// namespace clang::ssaf
31
32
#endif
// LLVM_CLANG_SCALABLESTATICANALYSIS_SOURCETRANSFORMATION_YAMLSOURCEEDITFORMAT_H
Replacement.h
clang::ssaf
Definition
CompilerInvocation.h:56
clang::ssaf::writeYAMLSourceEdits
llvm::Error writeYAMLSourceEdits(const clang::tooling::TranslationUnitReplacements &Doc, llvm::StringRef Path)
Writes Doc to Path as a YAML document compatible with clang-apply-replacements.
Definition
YAMLSourceEditFormat.cpp:19
Generated on
for clang by
1.14.0