| /external/clang/docs/ |
| D | PCHInternals.rst | 9 headers (PCH) and modules. If you are interested in the end-user view, please 10 see the :ref:`User's Manual <usersmanual-precompiled-headers>`. 13 ---------------------------------------- 15 The Clang compiler frontend, ``clang -cc1``, supports two command line options 18 To generate PCH files using ``clang -cc1``, use the option `-emit-pch`: 20 .. code-block:: bash 22 $ clang -cc1 test.h -emit-pch -o test.h.pch 27 file can then be used as a prefix header with the `-include-pch` 30 .. code-block:: bash 32 $ clang -cc1 -include-pch test.h.pch test.c -o test.s [all …]
|
| /external/rust/crates/pdl-compiler/src/backends/rust_legacy/ |
| D | serializer.rs | 7 // https://www.apache.org/licenses/LICENSE-2.0 15 use crate::backends::rust_legacy::{mask_bits, types, ToIdent, ToUpperCamelCase}; 16 use crate::{analyzer, ast}; 19 /// A single bit-field value. 22 field_type: types::Integer, // The type of the value. 23 shift: usize, // A bit-shift to apply to `value`. 29 endianness: ast::EndiannessValue, 41 endianness: ast::EndiannessValue, in new() 44 ) -> FieldSerializer<'a> { in new() 57 pub fn add(&mut self, field: &ast::Field) { in add() [all …]
|
| D | parser.rs | 7 // https://www.apache.org/licenses/LICENSE-2.0 16 constraint_to_value, find_constrained_parent_fields, mask_bits, types, ToIdent, 19 use crate::{analyzer, ast}; 23 fn size_field_ident(id: &str) -> proc_macro2::Ident { in size_field_ident() 27 /// A single bit-field. 30 field: &'a ast::Field, 36 endianness: ast::EndiannessValue, 37 decl: &'a ast::Decl, 50 endianness: ast::EndiannessValue, in new() 53 ) -> FieldParser<'a> { in new() [all …]
|
| /external/rust/crates/pdl-compiler/src/backends/rust/ |
| D | serializer.rs | 7 // https://www.apache.org/licenses/LICENSE-2.0 15 use crate::backends::rust::{mask_bits, types, ToIdent, ToUpperCamelCase}; 16 use crate::{analyzer, ast}; 26 ) -> proc_macro2::TokenStream { in range_check() 48 fn payload_size() -> Self { in payload_size() 71 /// Represents part of a compound bit-field. 74 field_type: types::Integer, 79 endianness: ast::EndiannessValue, 91 endianness: ast::EndiannessValue, in new() 95 ) -> Self { in new() [all …]
|
| /external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/ |
| D | CompilationUnit.java | 2 * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 * Copyright (C) 2011, 2013-2015 The JavaParser Team. 22 package com.github.javaparser.ast; 24 import com.github.javaparser.ast.body.AnnotationDeclaration; 25 import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; 26 import com.github.javaparser.ast.body.EmptyTypeDeclaration; 27 import com.github.javaparser.ast.body.EnumDeclaration; 28 import com.github.javaparser.ast.comments.Comment; 29 import com.github.javaparser.ast.comments.JavadocComment; 30 import com.github.javaparser.ast.body.TypeDeclaration; [all …]
|
| /external/clang/test/ASTMerge/ |
| D | function.c | 1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/function1.c 2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/function2.c 3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s 4 // RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -verify %s 6 // CHECK: function2.c:3:6: error: external function 'f1' declared with incompatible types in differ… 8 // CHECK: function2.c:5:6: error: external function 'f3' declared with incompatible types in differ… 12 // expected-error@Inputs/function2.c:3 {{external function 'f1' declared with incompatible types}} 13 // expected-note@Inputs/function1.c:2 {{declared here}} 14 // expected-error@Inputs/function2.c:5 {{external function 'f3' declared with incompatible types}} 15 // expected-note@Inputs/function1.c:4 {{declared here}}
|
| D | category.m | 1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/category1.m 2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/category2.m 3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s 5 // CHECK: category2.m:18:1: error: instance method 'method2' has incompatible result types in diffe… 7 // CHECK: category2.m:26:1: error: instance method 'method3' has incompatible result types in diffe… 9 // CHECK: category2.m:48:1: error: instance method 'blah' has incompatible result types in differen…
|
| D | var.c | 1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/var1.c 2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/var2.c 3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -fdiagnostics-show-not… 5 // CHECK: var2.c:2:9: error: external variable 'x1' declared with incompatible types in different t… 7 // CHECK: var2.c:3:5: error: external variable 'x2' declared with incompatible types in different t… 10 // CHECK: error: external variable 'xarray3' declared with incompatible types in different translat…
|
| D | interface.m | 1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/interface1.m 2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/interface2.m 3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s 5 // CHECK: interface2.m:16:9: error: instance variable 'ivar2' declared with incompatible types in d… 10 // CHECK: interface2.m:33:1: error: class method 'foo' has incompatible result types in different t… 12 // CHECK: interface2.m:39:19: error: class method 'bar:' has a parameter with a different types in … 16 // CHECK: interface2.m:57:20: error: instance method 'bar:' has a parameter with a different types …
|
| D | enum.c | 1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/enum1.c 2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/enum2.c 3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s 8 // CHECK: enum2.c:13:3: error: external variable 'x2' declared with incompatible types in different… 13 // CHECK: enum2.c:20:3: error: external variable 'x3' declared with incompatible types in different… 18 // CHECK: enum2.c:26:3: error: external variable 'x4' declared with incompatible types in different… 23 // CHECK: enum2.c:34:3: error: external variable 'x5' declared with incompatible types in different…
|
| D | struct.c | 1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/struct1.c 2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/struct2.c 3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s 8 // CHECK: struct2.c:15:11: error: external variable 'x1' declared with incompatible types in differ… 12 // CHECK: struct2.c:18:30: error: external variable 'x2' declared with incompatible types in differ… 17 // CHECK: struct2.c:21:31: error: external variable 'x3' declared with incompatible types in differ… 22 // CHECK: struct2.c:24:31: error: external variable 'x4' declared with incompatible types in differ… 25 // CHECK: struct1.c:33:33: note: bit-field 'j' with type 'unsigned int' and length 8 here 26 // CHECK: struct2.c:30:33: note: field 'j' is not a bit-field 27 // CHECK: struct2.c:30:38: error: external variable 'x6' declared with incompatible types in differ… [all …]
|
| D | class-template.cpp | 1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/class-template1.cpp 2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/class-template2.cpp 3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s 5 // CHECK: class-template1.cpp:7:14: error: non-type template parameter declared with incompatible t… 6 // CHECK: class-template2.cpp:7:15: note: declared here with type 'long' 8 // CHECK: class-template1.cpp:10:14: error: template parameter has different kinds in different tra… 9 // CHECK: class-template2.cpp:10:10: note: template parameter declared here 11 // CHECK: class-template1.cpp:16:23: error: non-type template parameter declared with incompatible … 12 // CHECK: class-template2.cpp:16:23: note: declared here with type 'int' 14 // CHECK: class-template1.cpp:19:10: error: template parameter has different kinds in different tra… [all …]
|
| /external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/body/ |
| D | MultiTypeParameter.java | 2 * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 * Copyright (C) 2011, 2013-2015 The JavaParser Team. 22 package com.github.javaparser.ast.body; 24 import com.github.javaparser.ast.expr.AnnotationExpr; 25 import com.github.javaparser.ast.type.Type; 26 import com.github.javaparser.ast.visitor.GenericVisitor; 27 import com.github.javaparser.ast.visitor.VoidVisitor; 32 private List<Type> types; field in MultiTypeParameter 36 …public MultiTypeParameter(int modifiers, List<AnnotationExpr> annotations, List<Type> types, Varia… in MultiTypeParameter() argument 38 this.types = types; in MultiTypeParameter() [all …]
|
| /external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ |
| D | ASTHelper.java | 2 * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 * Copyright (C) 2011, 2013-2015 The JavaParser Team. 24 import com.github.javaparser.ast.CompilationUnit; 25 import com.github.javaparser.ast.Node; 26 import com.github.javaparser.ast.body.BodyDeclaration; 27 import com.github.javaparser.ast.body.FieldDeclaration; 28 import com.github.javaparser.ast.body.MethodDeclaration; 29 import com.github.javaparser.ast.body.Parameter; 30 import com.github.javaparser.ast.body.TypeDeclaration; 31 import com.github.javaparser.ast.body.VariableDeclarator; [all …]
|
| /external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/ |
| D | CompilationUnit.java | 2 * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 * Copyright (C) 2011, 2013-2016 The JavaParser Team. 21 package com.github.javaparser.ast; 24 import com.github.javaparser.ast.body.AnnotationDeclaration; 25 import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; 26 import com.github.javaparser.ast.body.EnumDeclaration; 27 import com.github.javaparser.ast.body.TypeDeclaration; 28 import com.github.javaparser.ast.comments.Comment; 29 import com.github.javaparser.ast.comments.JavadocComment; 30 import com.github.javaparser.ast.expr.Name; [all …]
|
| /external/python/cpython3/Parser/ |
| D | asdl.py | 1 #------------------------------------------------------------------------------- 3 # it into an AST that describes it. 8 # non-terminals. Id is either TokenId or ConstructorId. 21 #------------------------------------------------------------------------------- 26 'builtin_types', 'parse', 'AST', 'Module', 'Type', 'Constructor', 30 # Note: this is a "meta-AST". ASDL files (such as Python.asdl) describe the AST 32 # parsed. This module parses ASDL files and uses a simple AST to represent them. 34 # between the various node types. 38 class AST: class 42 class Module(AST): [all …]
|
| /external/clang/include/clang/Serialization/ |
| D | ASTBitCodes.h | 1 //===- ASTBitCodes.h - Enum values for the PCH bitcode format ---*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 10 // This header defines Bitcode enum values for Clang serialized AST files. 16 //===----------------------------------------------------------------------===// 20 #include "clang/AST/DeclarationName.h" 21 #include "clang/AST/Type.h" 28 /// \brief AST file major version number supported by this version of 31 /// Whenever the AST file format changes in a way that makes it 36 /// Version 4 of AST files also requires that the version control branch and 38 /// AST files at this time. [all …]
|
| /external/python/pycparser/examples/ |
| D | explore_ast.py | 1 #----------------------------------------------------------------- 4 # This example demonstrates how to "explore" the AST created by 5 # pycparser to understand its structure. The AST is a n-nary tree 9 # information from the AST. 14 #----------------------------------------------------------------- 19 # your site-packages/ with setup.py 30 # Also, a C parser must have all the types declared in order to 31 # build the correct AST. It doesn't matter what they're declared 33 # parser know Hash and Node are types. You don't need to do it 43 if (hash == NULL || hash->heads == NULL) [all …]
|
| /external/javaparser/javaparser-core/ |
| D | bnd.bnd | 1 # Make the Bundle-SymbolicName fully qualified, not just the artifact id 2 Bundle-SymbolicName: com.github.javaparser.javaparser-core 5 -exportcontents: \ 16 com.github.javaparser.resolution.types, \ 17 com.github.javaparser.resolution.types.parametrization, \ 19 com.github.javaparser.ast, \ 20 com.github.javaparser.ast.body, \ 21 com.github.javaparser.ast.imports, \ 22 com.github.javaparser.ast.comments, \ 23 com.github.javaparser.ast.modules, \ [all …]
|
| /external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/ |
| D | CompilationUnit.java | 2 * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 * Copyright (C) 2011, 2013-2016 The JavaParser Team. 22 package com.github.javaparser.ast; 24 import static com.github.javaparser.ast.expr.NameExpr.*; 32 import com.github.javaparser.ast.expr.NameExpr; 35 import com.github.javaparser.ast.body.*; 36 import com.github.javaparser.ast.comments.Comment; 37 import com.github.javaparser.ast.comments.JavadocComment; 38 import com.github.javaparser.ast.expr.NameExpr; 39 import com.github.javaparser.ast.visitor.GenericVisitor; [all …]
|
| /external/clang/include/clang/AST/ |
| D | ASTTypeTraits.h | 1 //===--- ASTTypeTraits.h ----------------------------------------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 11 // that can be used to store an AST base node at runtime in the same storage in 14 //===----------------------------------------------------------------------===// 19 #include "clang/AST/ASTFwd.h" 20 #include "clang/AST/Decl.h" 21 #include "clang/AST/NestedNameSpecifier.h" 22 #include "clang/AST/Stmt.h" 23 #include "clang/AST/TemplateBase.h" 24 #include "clang/AST/TypeLoc.h" [all …]
|
| /external/selinux/libsepol/cil/src/ |
| D | android.c | 15 /* added to hashmap - currently unused as hashmap is used as a set */ 50 for (p = keyp; ((size_t) (p - keyp)) < size; p++) in ver_map_hash_val() 52 (val << 4 | (val >> (8 * sizeof(unsigned int) - 4))) ^ (*p); in ver_map_hash_val() 53 return val & (h->size - 1); in ver_map_hash_val() 92 switch (node->flavor) { in __extract_attributees_helper() 95 CIL_KEY_ROLE, node->line); in __extract_attributees_helper() 101 datum->db = args->db; in __extract_attributees_helper() 102 datum->ast_node = node; in __extract_attributees_helper() 103 datum->orig_name = DATUM(node->data)->name; in __extract_attributees_helper() 104 key = datum->orig_name; in __extract_attributees_helper() [all …]
|
| /external/python/cpython2/Parser/ |
| D | asdl.py | 4 http://www.cs.princeton.edu/research/techreps/TR-554-97 86 r"\-\-[^\n]*" 223 # below is a collection of classes to capture the AST of an AST :-) 227 class AST(object): class 230 class Module(AST): 235 self.types = {} # maps type name to value (from dfns) 237 self.types[type.name.value] = type.value 242 class Type(AST): 250 class Constructor(AST): 258 class Field(AST): [all …]
|
| /external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/type/ |
| D | UnionType.java | 2 * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 * Copyright (C) 2011, 2013-2016 The JavaParser Team. 21 package com.github.javaparser.ast.type; 23 import com.github.javaparser.ast.AllFieldsConstructor; 24 import com.github.javaparser.ast.NodeList; 25 import com.github.javaparser.ast.expr.AnnotationExpr; 26 import com.github.javaparser.ast.nodeTypes.NodeWithAnnotations; 27 import com.github.javaparser.ast.observer.ObservableProperty; 28 import com.github.javaparser.ast.visitor.GenericVisitor; 29 import com.github.javaparser.ast.visitor.VoidVisitor; [all …]
|
| D | IntersectionType.java | 2 * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 * Copyright (C) 2011, 2013-2016 The JavaParser Team. 21 package com.github.javaparser.ast.type; 23 import com.github.javaparser.ast.AllFieldsConstructor; 24 import com.github.javaparser.ast.Node; 25 import com.github.javaparser.ast.NodeList; 26 import com.github.javaparser.ast.expr.AnnotationExpr; 27 import com.github.javaparser.ast.nodeTypes.NodeWithAnnotations; 28 import com.github.javaparser.ast.observer.ObservableProperty; 29 import com.github.javaparser.ast.visitor.CloneVisitor; [all …]
|