/external/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/ |
H A D | p7.cpp | 3 enum class EC { ec }; class 4 using EC::ec; // expected-error {{using declaration cannot refer to a scoped enumerator}}
|
/external/clang/test/CXX/expr/expr.post/expr.static.cast/ |
H A D | p9-0x.cpp | 4 enum class EC { ec1 }; class 6 void test0(EC ec) { 8 (void)static_cast<bool>(EC::ec1); 10 (void)static_cast<char>(EC::ec1); 12 (void)static_cast<int>(EC::ec1); 14 (void)static_cast<unsigned long>(EC::ec1); 16 (void)static_cast<float>(EC::ec1); 18 (void)static_cast<double>(EC::ec1);
|
/external/llvm/lib/Support/ |
H A D | IntEqClasses.cpp | 27 EC.reserve(N); 28 while (EC.size() < N) 29 EC.push_back(EC.size()); 34 unsigned eca = EC[a]; 35 unsigned ecb = EC[b]; 41 EC[b] = eca; 43 ecb = EC[b]; 45 EC[a] = ecb; 47 eca = EC[ [all...] |
H A D | FileOutputBuffer.cpp | 42 std::error_code EC = sys::fs::status(FilePath, Stat); local 54 if (EC) 55 return EC; 61 EC = sys::fs::remove(FilePath); 62 if (EC) 63 return EC; 73 EC = sys::fs::createUniqueFile(Twine(FilePath) + ".tmp%%%%%%%", FD, 75 if (EC) 76 return EC; 86 EC 110 std::error_code EC = sys::fs::rename(Twine(TempPath), Twine(FinalPath)); local [all...] |
H A D | Error.cpp | 78 Error errorCodeToError(std::error_code EC) { argument 79 if (!EC) 81 return Error(llvm::make_unique<ECError>(ECError(EC))); 85 std::error_code EC; local 87 EC = EI.convertToErrorCode(); 89 if (EC == inconvertibleErrorCode()) 90 report_fatal_error(EC.message()); 91 return EC; 94 StringError::StringError(const Twine &S, std::error_code EC) argument 95 : Msg(S.str()), EC(E [all...] |
H A D | ToolOutputFile.cpp | 37 tool_output_file::tool_output_file(StringRef Filename, std::error_code &EC, argument 39 : Installer(Filename), OS(Filename, EC, Flags) { 41 if (EC)
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
H A D | IntEqClasses.cpp | 27 EC.reserve(N); 28 while (EC.size() < N) 29 EC.push_back(EC.size()); 34 unsigned eca = EC[a]; 35 unsigned ecb = EC[b]; 41 EC[b] = eca, b = ecb, ecb = EC[b]; 43 EC[a] = ecb, a = eca, eca = EC[ [all...] |
/external/llvm/lib/DebugInfo/CodeView/ |
H A D | StreamWriter.cpp | 22 if (auto EC = Stream.writeBytes(Offset, Buffer)) 23 return EC; 37 if (auto EC = writeFixedString(Str)) 38 return EC; 39 if (auto EC = writeObject('\0')) 40 return EC; 47 if (auto EC = Stream.writeBytes(Offset, Bytes)) 48 return EC; 55 if (auto EC = writeStreamRef(Ref, Ref.getLength())) 56 return EC; [all...] |
H A D | CVTypeVisitor.cpp | 29 if (auto EC = Callbacks.visitTypeBegin(Record)) 30 return EC; 33 if (auto EC = Callbacks.visitUnknownType(Record)) 34 return EC; 37 if (auto EC = Callbacks.visitFieldListBegin(Record)) 38 return EC; 39 if (auto EC = visitFieldList(Record)) 40 return EC; 41 if (auto EC = Callbacks.visitFieldListEnd(Record)) 42 return EC; [all...] |
H A D | StreamReader.cpp | 21 if (auto EC = Stream.readLongestContiguousChunk(Offset, Buffer)) 22 return EC; 28 if (auto EC = Stream.readBytes(Offset, Size, Buffer)) 29 return EC; 36 if (auto EC = readObject(P)) 37 return EC; 44 if (auto EC = readObject(P)) 45 return EC; 56 if (auto EC = readObject(C)) 57 return EC; [all...] |
/external/llvm/unittests/Support/ |
H A D | LockFileManagerTest.cpp | 22 std::error_code EC; local 23 EC = sys::fs::createUniqueDirectory("LockFileManagerTestDir", TmpDir); 24 ASSERT_FALSE(EC); 43 EC = sys::fs::remove(StringRef(TmpDir)); 44 ASSERT_FALSE(EC); 49 std::error_code EC; local 50 EC = sys::fs::createUniqueDirectory("LockFileManagerTestDir", TmpDir); 51 ASSERT_FALSE(EC); 63 EC = sys::fs::openFileForWrite(StringRef(TmpFileLock), FD, sys::fs::F_None); 64 ASSERT_FALSE(EC); 92 std::error_code EC; local [all...] |
/external/llvm/lib/DebugInfo/PDB/Raw/ |
H A D | NameMap.cpp | 27 if (auto EC = Stream.readInteger(NumberOfBytes)) 28 return joinErrors(std::move(EC), 42 if (auto EC = Stream.readInteger(HashSize)) 43 return joinErrors(std::move(EC), 50 if (auto EC = Stream.readInteger(MaxNumberOfStrings)) 51 return joinErrors(std::move(EC), 64 if (auto EC = Stream.readInteger(NumPresentWords)) 65 return joinErrors(std::move(EC), 76 if (auto EC = Stream.readInteger(Word)) 77 return joinErrors(std::move(EC), [all...] |
H A D | ModStream.cpp | 42 if (auto EC = Reader.readInteger(SymbolSubstreamSig)) 43 return EC; 44 if (auto EC = Reader.readArray(SymbolsSubstream, SymbolSize - 4)) 45 return EC; 47 if (auto EC = Reader.readStreamRef(LinesSubstream, C11Size)) 48 return EC; 49 if (auto EC = Reader.readStreamRef(C13LinesSubstream, C13Size)) 50 return EC; 53 if (auto EC = LineReader.readArray(LineInfo, LineReader.bytesRemaining())) 54 return EC; [all...] |
H A D | PDBFile.cpp | 81 if (auto EC = Buffer->readBytes(StreamBlockOffset, NumBytes, Result)) 82 return std::move(EC); 105 if (auto EC = Reader.readObject(SB)) { 106 consumeError(std::move(EC)); 111 if (auto EC = setSuperBlock(SB)) 112 return EC; 115 if (auto EC = Reader.readArray(DirectoryBlocks, getNumDirectoryBlocks())) 116 return EC; 137 if (auto EC = Reader.readInteger(NumStreams)) 138 return EC; [all...] |
H A D | DbiStream.cpp | 77 if (auto EC = Reader.readArray(Output, Count)) 78 return EC; 95 if (auto EC = Reader.readObject(Header)) 148 if (auto EC = Reader.readArray(ModInfoArray, Header->ModiSubstreamSize)) 149 return EC; 154 if (auto EC = Reader.readStreamRef(SecContrSubstream, 156 return EC; 157 if (auto EC = Reader.readStreamRef(SecMapSubstream, Header->SectionMapSize)) 158 return EC; 159 if (auto EC [all...] |
H A D | NameHashTable.cpp | 32 if (auto EC = Stream.readObject(H)) 33 return EC; 44 if (auto EC = Stream.readStreamRef(NamesBuffer, H->ByteSize)) 45 return joinErrors(std::move(EC), 50 if (auto EC = Stream.readObject(HashCount)) 51 return EC; 53 if (auto EC = Stream.readArray(IDs, *HashCount)) 54 return joinErrors(std::move(EC), 62 if (auto EC = Stream.readInteger(NameCount)) 63 return EC; [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | IntEqClasses.h | 29 /// EC - When uncompressed, map each integer to a smaller member of its 33 /// When compressed, EC[i] is the equivalence class of i. 34 SmallVector<unsigned, 8> EC; member in class:llvm::IntEqClasses 52 EC.clear(); 78 return EC[a];
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
H A D | IntEqClasses.h | 29 /// EC - When uncompressed, map each integer to a smaller member of its 33 /// When compressed, EC[i] is the equivalence class of i. 34 SmallVector<unsigned, 8> EC; member in class:llvm::IntEqClasses 52 EC.clear(); 78 return EC[a];
|
/external/llvm/lib/TableGen/ |
H A D | Main.cpp | 57 std::error_code EC; local 58 tool_output_file DepOut(DependFilename, EC, sys::fs::F_Text); 59 if (EC) { 61 << EC.message() << "\n"; 79 if (std::error_code EC = FileOrErr.getError()) { 81 << "': " << EC.message() << "\n"; 97 std::error_code EC; 98 tool_output_file Out(OutputFilename, EC, sys::fs::F_Text); 99 if (EC) { 101 << EC [all...] |
/external/clang/test/CodeGenCUDA/Inputs/ |
H A D | cuda-initializers.h | 12 struct EC { struct 14 __device__ EC() {} // -- allowed function in struct:EC 15 __device__ EC(int) {} // -- not allowed function in struct:EC 114 struct EC_I_EC : EC { 115 __device__ EC_I_EC() : EC() {} 119 struct EC_I_EC1 : EC { 120 __device__ EC_I_EC1() : EC(1) {}
|
/external/clang/test/SemaCUDA/Inputs/ |
H A D | cuda-initializers.h | 12 struct EC { struct 14 __device__ EC() {} // -- allowed function in struct:EC 15 __device__ EC(int) {} // -- not allowed function in struct:EC 114 struct EC_I_EC : EC { 115 __device__ EC_I_EC() : EC() {} 119 struct EC_I_EC1 : EC { 120 __device__ EC_I_EC1() : EC(1) {}
|
/external/llvm/tools/obj2yaml/ |
H A D | elf2yaml.cpp | 87 if (std::error_code EC = TableOrErr.getError()) 88 return EC; 94 if (std::error_code EC = S.getError()) 95 return EC; 101 if (std::error_code EC = S.getError()) 102 return EC; 108 if (std::error_code EC = G.getError()) 109 return EC; 115 if (std::error_code EC = G.getError()) 116 return EC; [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | EdgeBundles.h | 29 /// EC - Each edge bundle is an equivalence class. The keys are: 32 IntEqClasses EC; member in class:llvm::EdgeBundles 43 unsigned getBundle(unsigned N, bool Out) const { return EC[2 * N + Out]; } 46 unsigned getNumBundles() const { return EC.getNumClasses(); }
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
H A D | EdgeBundles.h | 28 /// EC - Each edge bundle is an equivalence class. The keys are: 31 IntEqClasses EC; member in class:llvm::EdgeBundles 42 unsigned getBundle(unsigned N, bool Out) const { return EC[2 * N + Out]; } 45 unsigned getNumBundles() const { return EC.getNumClasses(); }
|
/external/clang/lib/Frontend/ |
H A D | SerializedDiagnosticReader.cpp | 46 std::error_code EC; 53 if ((EC = readMetaBlock(Stream))) 54 return EC; 57 if ((EC = readDiagnosticBlock(Stream))) 58 return EC; 153 std::error_code EC; 154 if ((EC = visitStartOfDiagnostic())) 155 return EC; 168 if ((EC = readDiagnosticBlock(Stream))) 169 return EC; [all...] |