Lines Matching +defs:a +defs:code

406   // supports a strict superset of another. When allowing compatible
435 // a strict subset of the existing feature set, there is nothing to diagnose.
559 // If the original import came from a file explicitly generated by the user,
561 // FIXME: currently this is approximated by checking whether this is not a
605 // FIXME: if the diagnostics are incompatible, save a DiagnosticOptions that
634 // For a #define'd macro, figure out the actual definition.
680 // Use a line marker to enter the <command line> file, as the defines and
719 // If the macro was defined in one but undef'd in the other, we have a
1012 unsigned ASTIdentifierLookupTraitBase::ComputeHash(const internal_key_type& a) {
1013 return llvm::djbHash(a);
1121 // If this identifier is a macro, deserialize the macro
1301 "expected a TU_UPDATE_LEXICAL record for TU");
1302 // If we are handling a C++ class template instantiation, we can see multiple
1378 // Ideally we'd just emit it, but have to handle a possible in-flight
1442 /// Read a source manager block
1483 // Read a record.
1630 Error("AST record has invalid code");
1673 // We will detect whether a file changed and return 'Failure' for it, but
1680 // Note that we only check if a File was returned. If it was out-of-date
1681 // we have complained but we will continue creating a FileID to recover
1773 // FIXME: Can we map this down to a particular submodule? That would be
1783 // Otherwise we have a PCH. It's considered to be "imported" at the first
1793 /// Enter a subblock of the specified BlockID with the specified cursor. Read
1865 llvm_unreachable("missing deserialization code for annotation token");
1917 // Read a record.
1933 // If we already have a macro, that means that we've hit the end
1971 // We have a macro definition. Register the association
1988 // If we see a TOKEN before a PP_MACRO_*, then the file is
1992 Error("unexpected number of macro tokens for a macro in AST file");
2049 bool HeaderFileInfoTrait::EqualKey(internal_key_ref a, internal_key_ref b) {
2050 if (a.Size != b.Size || (a.ModTime && b.ModTime && a.ModTime != b.ModTime))
2053 if (llvm::sys::path::is_absolute(a.Filename) && a.Filename == b.Filename)
2057 const FileEntry *FEA = getFile(a);
2119 // This header is part of a module. Associate it with the module to enable
2276 // If there is a global index, look there first to determine which modules
2323 // We expect to see a sequence of PP_MODULE_MACRO records listing exported
2324 // macros, followed by a PP_MACRO_DIRECTIVE_HISTORY record with the complete
2390 // Don't read the directive history for a module; we don't have anywhere
2433 // If a PCH is loaded and validation is disabled for PCH then disable
2577 // For an overridden file, create a virtual file with the stored
2596 // Check if there was a request to override the contents of the file
2597 // that was part of the precompiled header. Overriding such a file
2608 // (this creates a separate FileEntry).
2689 // Build a list of the PCH imports that got us here (in reverse).
2718 // issue an error (or split it into a separate FileEntry).
2727 /// If we are loading a relocatable PCH or module file, and the filename
2796 // Read and process a record.
2913 // If we are reading a module, we will create a verification timestamp,
2969 // the configuration of the current translation unit in a compatible
2991 // middle of a block.
3013 // Read and process a record.
3051 // Relative paths in a relocatable PCH are relative to our sysroot.
3071 // them can be error-prone and expensive). A module will have a name and
3081 // Whether we're importing a standard c++ module.
3110 // perhaps in a different location.
3140 // If we diagnosed a problem, produce a backtrace.
3183 // Validate the AST as soon as we have a name so we can exit early on
3199 // If we've already loaded a module map file covering this module, we may
3200 // have a better path for it (relative to the current build).
3205 // If we're implicitly loading a module, the base directory can't
3265 // Outside of C++, we do not store a lookup map for the translation unit.
3266 // Instead, mark it as needing a lookup map to be built if this module
3356 // Read and process a record.
3480 // about "interesting" decls (for instance, if we're building a module).
3509 // FIXME: If ID && SpecialTypes[I] != ID, do we need a separate
3933 // If we aren't loading a module (which has its own exports), make
4022 // Reset the stack when importing a new module.
4044 // Reset the stack when importing a new module.
4140 // top-level AST file is a main file, skip this check because there is no
4163 // This module was built with a different module map.
4168 // In case it was imported by a PCH, there's a chance the user is
4385 OS.clear_error(); // Avoid triggering a fatal error.
4388 /// Given a cursor at the start of an AST file, scan ahead and drop the
4475 // They are generally only incidentally dereferenced, ie. a binary search
4491 // The AST block should always have a definition for the main module.
4544 // ASTReader::get() a no-op, and deserialization will take place on
4638 // If this AST file is a precompiled preamble, then set the
4679 // always done the same. Unify it all with a helper.
4810 // Check that we didn't try to load a non-module AST file as a module.
4812 // FIXME: Should we also perform the converse check? Loading a module as
4813 // a PCH file sort of works, but it's a bit wonky.
4885 // with it; we can only load a single version of each module.
4887 // This can happen when a module is imported in two contexts: in one, as a
4888 // user module; in another, as a system module (due to an import from
4889 // another module marked with the [system] flag). It usually indicates a
4892 // If -Wno-system-headers (the default), and the first import is as a
4895 // to treat this consistently as a system module.
4898 // -Wno-system-headers, and the first import is as a user module, then
4915 // Initialize a stream.
4954 // Read and process a record.
5014 /// Parse a record and blob containing module file extension metadata.
5073 // Find a module file extension with this block name.
5077 // Form a reader.
5095 // If there's a listener, notify them that we "read" the translation unit.
5101 // FIXME: Find a better way to deal with collisions between these
5216 // Re-export any modules that were imported by a non-module AST file.
5417 // VFS when actually loading a module.
5742 // Read a record.
5756 // Submodule information is only valid if we have a current module.
5849 // The module is available unless it's missing a requirement; relevant
6021 /// Parse the record that corresponds to a LangOptions data
6360 /// \param SLocMapI points at a chunk of a module that contains no
6436 // Do a binary search manually instead of using std::lower_bound because
6437 // The end locations of entities may be unordered (when a macro expansion
6460 /// Returns a pair of [Begin, End) indices of preallocated
6498 /// Visitor used to search for information about a header file.
6569 // If this mapping was specified as a warning but the severity was
6571 // settings (and use a warning).
6672 /// Get the correct cursor and offset for loading a type.
6679 static std::optional<Type::TypeClass> getTypeClassForCode(TypeCode code) {
6680 switch (code) {
6693 /// location. It is a helper routine for GetType, which deals with reading type
6707 // Note that we are loading a type record.
6734 Error("Unexpected code for type");
7562 assert(isa<TranslationUnitDecl>(D) && "Not a TU?");
7568 // If this is a named declaration, complete it by looking it up
7571 // FIXME: Merging a function definition should merge
7577 // Outside of C++, we don't have a lookup table for the TU, so update
7899 /// Resolve the offset of a statement into a statement.
7901 /// This operation will read a new statement from the external
7902 /// source each time it is called, and is meant to be used via a
7908 // Offset here is a global offset across the entire chain.
8021 // If we are pointing at a top-level decl inside an objc container, we need
8284 // FIXME: What happens if these are changed by a module import?
8331 // The bottom of the stack might have a default value. It must be adjusted
8333 // popping entries that were included/imported from a PCH/module.
8339 "Expected a default alignment value");
8355 "Expected a default align and pack value");
8364 // The bottom of the stack might have a default value. It must be adjusted
8366 // popping entries that were included/imported from a PCH/module.
8371 "Expected a default pragma float_control value");
8384 "Expected a default pragma float_control value");
8414 // a complete initial identifier table if we're carrying on from a PCH.
8420 // If there is a global index, look there first to determine which modules
8441 /// identifiers stored within a set of AST files.
8586 // in the order they appear in the source code by iterating through
8661 // when building a module we keep every method individually and may need to
8892 /// If the AST reader is currently in a state where the given declaration IDs
8917 // once a Sema object is known.
9083 // It's a module, look it up by submodule ID.
9087 // It's a prefix (preamble, PCH, ...). Look it up by index.
9098 // For a file representing a module, use the submodule ID of the top-level
9101 // FIXME: Is this true even if we have an explicit module file and a PCH?
9115 // If there is only a single PCH, return it instead.
9269 /// Read a UnresolvedSet structure.
9441 /// Read a floating-point value
9446 // Read a string
9520 "Already have a SwitchCase with this ID");
9570 // Read a record.
9671 // Load each function type that we deferred loading because it was a
9672 // deduced type that might refer to a local type declared within itself.
9678 // If we gave a function a deduced return type, remember that we need to
9695 // Load each variable type that we deferred loading because it was a
9696 // deduced type that might refer to a local type declared within itself.
9805 "faked up a class definition but never saw the real one");
9863 // For a function defined inline within a class template, force the
9865 // the template. This ensures that we instantiate from a correct view
10004 // For each declaration from a merged context, check that the canonical
10005 // definition of that context also contains a declaration of the same
10009 // PendingOdrMergeChecks. Don't turn this into a range-based for loop!
10037 // replaced by a more recent declaration in the lookup table), and we
10098 // If we've already pointed out a specific problem with this class, don't
10099 // bother issuing a general "something's different" diagnostic.
10114 // All definitions are updates to the same declaration. This happens if a
10115 // module instantiates the declaration of a class template specialization
10127 // that in C++ this is done as a part of CXXRecordDecl ODR checking.
10129 // If we've already pointed out a specific problem with this class, don't
10130 // bother issuing a general "something's different" diagnostic.
10162 // If we've already pointed out a specific problem with this enum, don't
10163 // bother issuing a general "something's different" diagnostic.
10180 // If we've already pointed out a specific problem with this interface,
10181 // don't bother issuing a general "something's different" diagnostic.
10199 // If we've already pointed out a specific problem with this protocol,
10200 // don't bother issuing a general "something's different" diagnostic.