This file contains hidden or 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
$ ./main.o example.c | |
Diagnostic count: 1 | |
Diagnostic spelling: use of undeclared identifier 'retur' | |
Formatted diagnostic: example.c:5:3: error: use of undeclared identifier 'retur' [2, Semantic Issue] | |
No source ranges for diagnostic. |
This file contains hidden or 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> | |
int main(int argc, char **argv) { | |
// Here is the syntax error: | |
retur 0; | |
} |
This file contains hidden or 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 <clang-c/Index.h> | |
#include <stdio.h> | |
void parseMalformedFile(char* source) { | |
CXIndex index = clang_createIndex( | |
/* excludeDeclarationsFromPCH */ 0, | |
/* displayDiagnostics */ 0); | |
const char *args[] = { | |
"-I/usr/include", | |
"-I.", |
This file contains hidden or 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
---- example.h ---- | |
#import <Foundation/Foundation.h> | |
#ifndef __has_feature // Optional. | |
#define __has_feature(x) 0 // Compatibility with non-clang compilers. | |
#endif | |
#ifndef NS_RETURNS_NOT_RETAINED | |
#if __has_feature(attribute_ns_returns_not_retained) |
This file contains hidden or 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
import cgi | |
import re | |
import xml.dom.minidom | |
# Omit trailing slash. | |
HOST = 'http://www.bolinfest.com' | |
STYLE = """ | |
body { | |
width: 825px; |
NewerOlder