Home
last modified time | relevance | path

Searched refs:yaml (Results 1 – 25 of 239) sorted by relevance

12345678910

/external/llvm/utils/yaml-bench/
DYAMLBench.cpp67 static std::string prettyTag(yaml::Node *N) { in prettyTag()
80 static void dumpNode( yaml::Node *n in dumpNode()
90 if (yaml::ScalarNode *sn = dyn_cast<yaml::ScalarNode>(n)) { in dumpNode()
93 outs() << prettyTag(n) << " \"" << yaml::escape(Val) << "\""; in dumpNode()
94 } else if (yaml::SequenceNode *sn = dyn_cast<yaml::SequenceNode>(n)) { in dumpNode()
97 for (yaml::SequenceNode::iterator i = sn->begin(), e = sn->end(); in dumpNode()
104 } else if (yaml::MappingNode *mn = dyn_cast<yaml::MappingNode>(n)) { in dumpNode()
107 for (yaml::MappingNode::iterator i = mn->begin(), e = mn->end(); in dumpNode()
118 } else if (yaml::AliasNode *an = dyn_cast<yaml::AliasNode>(n)){ in dumpNode()
120 } else if (isa<yaml::NullNode>(n)) { in dumpNode()
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DSymbolRewriter.h43 namespace yaml {
97 bool parseEntry(yaml::Stream &Stream, yaml::KeyValueNode &Entry,
99 bool parseRewriteFunctionDescriptor(yaml::Stream &Stream,
100 yaml::ScalarNode *Key,
101 yaml::MappingNode *Value,
103 bool parseRewriteGlobalVariableDescriptor(yaml::Stream &Stream,
104 yaml::ScalarNode *Key,
105 yaml::MappingNode *Value,
107 bool parseRewriteGlobalAliasDescriptor(yaml::Stream &YS, yaml::ScalarNode *K,
108 yaml::MappingNode *V,
/external/llvm/lib/Transforms/Utils/
DSymbolRewriter.cpp251 yaml::Stream YS(MapFile->getBuffer(), SM); in parse()
254 yaml::MappingNode *DescriptorList; in parse()
257 if (isa<yaml::NullNode>(Document.getRoot())) in parse()
260 DescriptorList = dyn_cast<yaml::MappingNode>(Document.getRoot()); in parse()
274 bool RewriteMapParser::parseEntry(yaml::Stream &YS, yaml::KeyValueNode &Entry, in parseEntry()
276 yaml::ScalarNode *Key; in parseEntry()
277 yaml::MappingNode *Value; in parseEntry()
281 Key = dyn_cast<yaml::ScalarNode>(Entry.getKey()); in parseEntry()
287 Value = dyn_cast<yaml::MappingNode>(Entry.getValue()); in parseEntry()
306 parseRewriteFunctionDescriptor(yaml::Stream &YS, yaml::ScalarNode *K, in parseRewriteFunctionDescriptor()
[all …]
/external/llvm/test/YAMLParser/
Dyaml.data1 # RUN: yaml-bench -canonical %s | FileCheck %s
3 - !!yaml '!'
4 - !!yaml '&'
5 - !!yaml '*'
8 # CHECK: !!yaml "!",
9 # CHECK: !!yaml "&",
10 # CHECK: !!yaml "*",
Dspec-07-06.data1 # RUN: yaml-bench -canonical %s
4 %TAG !yaml! tag:yaml.org,2002:
7 - !yaml!str "string"
Dspec-07-04.data1 # RUN: yaml-bench -canonical %s | FileCheck %s
3 %TAG !yaml! tag:yaml.org,2002:
5 !yaml!str "foo"
/external/clang/test/VFS/
Dmodule-import.m2 // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml
3 // RUN: %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -I %t -fsyntax-on…
13 // mapped in vfsoverlay2.yaml.
20 // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay2.yaml > %t2.yaml
21 …_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -ivfsoverlay %t2.yaml -I %t -f…
24 // RUN: not %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -I %t -fsynta…
27 …_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t2.yaml -ivfsoverlay %t.yaml -I %t -f…
Dreal-path-found-first.m11 // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml
15 // RUN: -ivfsoverlay %t.yaml -fsyntax-only %s -verify -Wauto-import \
21 // RUN: -ivfsoverlay %t.yaml -fsyntax-only %s -verify -Wauto-import \
26 // RUN: -ivfsoverlay %t.yaml -emit-pch %s -o %t.pch \
30 // RUN: -ivfsoverlay %t.yaml -include-pch %t.pch -fsyntax-only %s \
36 // RUN: -ivfsoverlay %t.yaml -fsyntax-only -Wauto-import \
40 // RUN: -ivfsoverlay %t.yaml -fsyntax-only -Wauto-import \
47 // RUN: echo "{ 'version': 0, 'roots': [ { " > %t2.yaml
48 // RUN: echo "'name': '%t/SomeFramework.framework/Modules/module.modulemap'," >> %t2.yaml
49 // RUN: echo "'type': 'file', 'external-contents': '%t/hide_module.map' } ] }" >> %t2.yaml
[all …]
Dframework-import.m1 // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml
2 // RUN: %clang_cc1 -Werror -F %t -ivfsoverlay %t.yaml -fsyntax-only %s
Dumbrella-mismatch.m2 …: sed -e "s;INPUT_DIR;%/S/Inputs;g" -e "s;OUT_DIR;%/S/Inputs;g" %S/Inputs/vfsoverlay.yaml > %t.yaml
4 // RUN: %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -F %S/Inputs -fsy…
Dincomplete-umbrella.m4 // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml
6 // RUN: -ivfsoverlay %t.yaml -F %t -fsyntax-only %s 2>&1 | FileCheck %s
/external/llvm/lib/MC/
DYAML.cpp22 void yaml::ScalarTraits<yaml::BinaryRef>::output( in output()
23 const yaml::BinaryRef &Val, void *, llvm::raw_ostream &Out) { in output()
27 StringRef yaml::ScalarTraits<yaml::BinaryRef>::input(StringRef Scalar, void *, in input()
28 yaml::BinaryRef &Val) { in input()
36 Val = yaml::BinaryRef(Scalar); in input()
40 void yaml::BinaryRef::writeAsBinary(raw_ostream &OS) const { in writeAsBinary()
52 void yaml::BinaryRef::writeAsHex(raw_ostream &OS) const { in writeAsHex()
/external/llvm/unittests/Support/
DYAMLParserTest.cpp35 yaml::Stream Stream(Input, SM); in ExpectParseError()
44 yaml::Stream Stream(Input, SM); in ExpectParseSuccess()
149 yaml::Stream Stream(StringInArray, SM); in ExpectCanParseString()
150 yaml::SequenceNode *ParsedSequence in ExpectCanParseString()
151 = dyn_cast<yaml::SequenceNode>(Stream.begin()->getRoot()); in ExpectCanParseString()
153 = dyn_cast<yaml::ScalarNode>( in ExpectCanParseString()
154 static_cast<yaml::Node*>(ParsedSequence->begin()))->getRawValue(); in ExpectCanParseString()
186 yaml::Stream Stream("[\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"]", SM); in TEST()
187 yaml::SequenceNode *Array in TEST()
188 = dyn_cast<yaml::SequenceNode>(Stream.begin()->getRoot()); in TEST()
[all …]
DYAMLIOTest.cpp18 using llvm::yaml::Input;
19 using llvm::yaml::Output;
20 using llvm::yaml::IO;
21 using llvm::yaml::MappingTraits;
22 using llvm::yaml::MappingNormalization;
23 using llvm::yaml::ScalarTraits;
24 using llvm::yaml::Hex8;
25 using llvm::yaml::Hex16;
26 using llvm::yaml::Hex32;
27 using llvm::yaml::Hex64;
[all …]
/external/clang/lib/Tooling/
DJSONCompilationDatabase.cpp231 llvm::yaml::document_iterator I = YAMLStream.begin(); in parse()
236 llvm::yaml::Node *Root = I->getRoot(); in parse()
241 llvm::yaml::SequenceNode *Array = dyn_cast<llvm::yaml::SequenceNode>(Root); in parse()
246 for (llvm::yaml::SequenceNode::iterator AI = Array->begin(), in parse()
249 llvm::yaml::MappingNode *Object = dyn_cast<llvm::yaml::MappingNode>(&*AI); in parse()
254 llvm::yaml::ScalarNode *Directory = nullptr; in parse()
255 llvm::yaml::ScalarNode *Command = nullptr; in parse()
256 llvm::yaml::ScalarNode *File = nullptr; in parse()
257 for (llvm::yaml::MappingNode::iterator KVI = Object->begin(), in parse()
260 llvm::yaml::Node *Value = (*KVI).getValue(); in parse()
[all …]
/external/llvm/include/llvm/Object/
DELFYAML.h60 llvm::yaml::Hex64 Entry;
66 llvm::yaml::Hex64 Value;
67 llvm::yaml::Hex64 Size;
86 llvm::yaml::Hex64 Address;
89 llvm::yaml::Hex64 AddressAlign;
94 yaml::BinaryRef Content;
95 llvm::yaml::Hex64 Size;
113 llvm::yaml::Hex64 Offset;
144 namespace yaml { in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/llvm/docs/
DYamlIO.rst12 spec can be read at `yaml.org
13 <http://www.yaml.org/spec/1.2/spec.html#Introduction>`_. The simplest form of
14 yaml is just "scalars", "mappings", and "sequences". A scalar is any number
18 .. code-block:: yaml
27 .. code-block:: yaml
37 .. code-block:: yaml
58 .. code-block:: yaml
99 using llvm::yaml::ScalarEnumerationTraits;
100 using llvm::yaml::IO;
116 llvm::yaml::MappingTraits.
[all …]
/external/llvm/test/Object/
Dyaml2obj-elf-bits-endian.test1 RUN: yaml2obj -format=elf %p/Inputs/ELF/LE64.yaml | llvm-readobj -file-headers - | FileCheck %s --c…
2 RUN: yaml2obj -format=elf %p/Inputs/ELF/BE64.yaml | llvm-readobj -file-headers - | FileCheck %s --c…
3 RUN: yaml2obj -format=elf %p/Inputs/ELF/LE32.yaml | llvm-readobj -file-headers - | FileCheck %s --c…
4 RUN: yaml2obj -format=elf %p/Inputs/ELF/BE32.yaml | llvm-readobj -file-headers - | FileCheck %s --c…
Dobj2yaml-sectiongroup.test2 RUN: obj2yaml %p/Inputs/sectionGroup.elf.x86-64 > %t1.sectiongroup.yaml
3 RUN: FileCheck %s --check-prefix ELF-GROUP < %t1.sectiongroup.yaml
4 RUN: yaml2obj -format=elf %t1.sectiongroup.yaml -o %t2.o.elf
/external/clang/lib/Basic/
DVirtualFileSystem.cpp538 yaml::Stream &Stream;
540 void error(yaml::Node *N, const Twine &Msg) { in error()
545 bool parseScalarString(yaml::Node *N, StringRef &Result, in parseScalarString()
547 yaml::ScalarNode *S = dyn_cast<yaml::ScalarNode>(N); in parseScalarString()
557 bool parseScalarBool(yaml::Node *N, bool &Result) { in parseScalarBool()
585 bool checkDuplicateOrUnknownKey(yaml::Node *KeyNode, StringRef Key, in checkDuplicateOrUnknownKey()
601 bool checkMissingKeys(yaml::Node *Obj, DenseMap<StringRef, KeyStatus> &Keys) { in checkMissingKeys()
613 Entry *parseEntry(yaml::Node *N) { in parseEntry()
614 yaml::MappingNode *M = dyn_cast<yaml::MappingNode>(N); in parseEntry()
638 for (yaml::MappingNode::iterator I = M->begin(), E = M->end(); I != E; in parseEntry()
[all …]
/external/llvm/tools/yaml2obj/
Dyaml2obj.h17 namespace yaml {
21 int yaml2coff(llvm::yaml::Input &YIn, llvm::raw_ostream &Out);
22 int yaml2elf(llvm::yaml::Input &YIn, llvm::raw_ostream &Out);
/external/llvm/unittests/MC/
DYAMLTest.cpp17 yaml::BinaryRef Binary;
21 namespace yaml { namespace
35 yaml::Output YOut(OS); in TEST()
/external/llvm/include/llvm/Support/
DYAMLParser.h54 namespace yaml {
359 template <class T> friend typename T::iterator yaml::begin(T &);
360 template <class T> friend void yaml::skip(T &);
362 iterator begin() { return yaml::begin(*this); } in begin()
366 void skip() override { yaml::skip(*this); } in skip()
415 template <class T> friend typename T::iterator yaml::begin(T &);
416 template <class T> friend void yaml::skip(T &);
420 iterator begin() { return yaml::begin(*this); } in begin()
424 void skip() override { yaml::skip(*this); } in skip()
/external/clang/include/clang/Tooling/
DJSONCompilationDatabase.h96 typedef std::pair<llvm::yaml::ScalarNode*,
97 llvm::yaml::ScalarNode*> CompileCommandRef;
110 llvm::yaml::Stream YAMLStream;
/external/clang/test/Index/
Dindex-module-with-vfs.m10 // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml
12 // RUN: -ivfsoverlay %t.yaml -Xclang -fdisable-module-hash | FileCheck %s

12345678910