Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: unittest/BitcodeMunge.h

Issue 877003003: Subzero: Use a "known" version of clang-format. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add a clang-format blacklist. Fix formatting "errors". Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/llvm2ice.cpp ('k') | unittest/BitcodeMunge.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- BitcodeMunge.h - Subzero Bitcode Munger ------------------*- C++ -*-===// 1 //===- BitcodeMunge.h - Subzero Bitcode Munger ------------------*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // Test harness for testing malformed bitcode files in Subzero. Uses NaCl's 10 // Test harness for testing malformed bitcode files in Subzero. Uses NaCl's
(...skipping 14 matching lines...) Expand all
25 // NaClBitcodeMunge.h. 25 // NaClBitcodeMunge.h.
26 class SubzeroBitcodeMunger : public llvm::NaClBitcodeMunger { 26 class SubzeroBitcodeMunger : public llvm::NaClBitcodeMunger {
27 public: 27 public:
28 SubzeroBitcodeMunger(const uint64_t Records[], size_t RecordSize, 28 SubzeroBitcodeMunger(const uint64_t Records[], size_t RecordSize,
29 uint64_t RecordTerminator) 29 uint64_t RecordTerminator)
30 : llvm::NaClBitcodeMunger(Records, RecordSize, RecordTerminator) {} 30 : llvm::NaClBitcodeMunger(Records, RecordSize, RecordTerminator) {}
31 31
32 /// Runs PNaClTranslator to translate bitcode records (with defined 32 /// Runs PNaClTranslator to translate bitcode records (with defined
33 /// record Munges), and puts output into DumpResults. Returns true 33 /// record Munges), and puts output into DumpResults. Returns true
34 /// if parse is successful. 34 /// if parse is successful.
35 bool runTest(const char* TestName, const uint64_t Munges[], 35 bool runTest(const char *TestName, const uint64_t Munges[], size_t MungeSize);
36 size_t MungeSize);
37 36
38 /// Same as above, but without any edits. 37 /// Same as above, but without any edits.
39 bool runTest(const char* TestName) { 38 bool runTest(const char *TestName) {
40 uint64_t NoMunges[] = {0}; 39 uint64_t NoMunges[] = {0};
41 return runTest(TestName, NoMunges, 0); 40 return runTest(TestName, NoMunges, 0);
42 } 41 }
43 }; 42 };
44 43
45 } // end of namespace IceTest 44 } // end of namespace IceTest
46 45
47 #endif // SUBZERO_UNITTEST_BITCODEMUNGE_H 46 #endif // SUBZERO_UNITTEST_BITCODEMUNGE_H
OLDNEW
« no previous file with comments | « src/llvm2ice.cpp ('k') | unittest/BitcodeMunge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698