This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import re | |
import sys | |
comments = [";", "//", "#"] | |
fileendings = re.compile("\.(ll|cpp|c)$") | |
prefixcheck = re.compile("-check-prefix[ =]([A-Za-z0-9_.\-]*)") | |
placeholders = re.compile("%[sStTp]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
enum E { A, B }; | |
int foo(enum E x) { | |
switch (x) { | |
case A: | |
return 42; | |
case B: | |
return 23; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Format/ContinuationIndenter.h b/lib/Format/ContinuationIndenter.h | |
index 2b33f5b..1d88d05 100644 | |
--- a/lib/Format/ContinuationIndenter.h | |
+++ b/lib/Format/ContinuationIndenter.h | |
@@ -228,37 +228,22 @@ struct ParenState { | |
bool ObjCSelectorNameFound; | |
bool operator<(const ParenState &Other) const { | |
- if (Indent != Other.Indent) | |
- return Indent < Other.Indent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make[1]: Entering directory `/home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.obj/lib/Support' | |
llvm[1]: Compiling APFloat.cpp for Release+Asserts build | |
llvm[1]: Compiling APInt.cpp for Release+Asserts build | |
In file included from /usr/include/c++/4.8/ios:42:0, | |
from /usr/include/c++/4.8/ostream:38, | |
from /usr/include/c++/4.8/iterator:64, | |
from /home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.src/include/llvm/ADT/SmallVector.h:28, | |
from /home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.src/include/llvm/ADT/ArrayRef.h:14, | |
from /home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.src/include/llvm/ADT/APInt.h:19, | |
from /home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.src/include/llvm/ADT/APFloat.h:20, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# ./cheader.pl foo.h bar.c qux.py | |
# creates empty source files | |
use strict; | |
sub cheader { | |
my $guard = uc shift; | |
$guard =~ tr/\.\/-/_/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from sys import argv | |
print(sum(int(x) for x in argv[1])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.profile | |
autoload zmv | |
autoload -U compinit | |
compinit | |
zstyle ':completion:*:descriptions' format '%U%B%d%b%u' | |
zstyle ':completion:*:warnings' format '%BNichts gefunden fuer: %d%b' | |
zstyle ':completion:*' completer _complete _match _approximate | |
zstyle ':completion:*:match:*' original only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Safari History.plist cleaner | |
* compile with: | |
* gcc historyclean.m -o historyclean | |
*/ | |
#import <Foundation/Foundation.h> | |
int main(int argc, char *argv[]) { | |
if (argc != 3) { | |
fprintf(stderr, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use File::stat; | |
use File::Basename; | |
if (@ARGV == 0) { | |
print {*STDERR} "Usage: $0 infile outfile\n"; | |
print {*STDERR} "Usage: $0 indir outdir\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <dirent.h> | |
#include <unistd.h> | |
int main(int argc, char *argv[]) { | |
DIR *dir; | |
unsigned long count = 0, unlinked = 0; | |
struct dirent *ent; | |
int ret; |
OlderNewer