Index: polly/trunk/.arcconfig =================================================================== --- polly/trunk/.arcconfig +++ polly/trunk/.arcconfig @@ -1,4 +1,6 @@ { "project_id" : "polly", - "conduit_uri" : "http://reviews.llvm.org/" + "conduit_uri" : "http://reviews.llvm.org/", + "linter.scriptandregex.script": "sh -c './utils/check_format.sh \"$0\" 2> /dev/null || true'", + "linter.scriptandregex.regex": "/^(OK:(?P.+)|Error:) (?P.+)$/m" } Index: polly/trunk/.arclint =================================================================== --- polly/trunk/.arclint +++ polly/trunk/.arclint @@ -0,0 +1,23 @@ +{ + "linters": { + "format": { + "include": "(include/polly/.+\\.h$|lib/.+\\.cpp$)", + "exclude": "(lib/JSON/.*)", + "type": "script-and-regex" + }, + "chmod": { + "type": "chmod" + }, + "filename": { + "exclude": "(www/experiments/.+|.*\\.jscop.*)", + "type": "filename" + }, + "merge-conflict": { + "type": "merge-conflict" + }, + "spelling": { + "exclude": "(configure|autoconf/.*)", + "type": "spelling" + } + } +} Index: polly/trunk/CMakeLists.txt =================================================================== --- polly/trunk/CMakeLists.txt +++ polly/trunk/CMakeLists.txt @@ -12,7 +12,7 @@ #FileCheck is not install by default, warn the user to Copy FileCheck if( NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/FileCheck OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not) - message(WARNING "FileCheck or not are requred by running regress tests, " + message(WARNING "FileCheck or not are required by running regress tests, " "but they are not installed! Please copy it to " "${LLVM_INSTALL_ROOT}/bin.") endif(NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/FileCheck Index: polly/trunk/autoconf/configure.ac =================================================================== --- polly/trunk/autoconf/configure.ac +++ polly/trunk/autoconf/configure.ac @@ -11,7 +11,7 @@ dnl This provides the --with-llvmsrc and --with-llvmobj options LLVM_CONFIG_PROJECT($LLVM_SRC_ROOT,$LLVM_OBJ_ROOT) -dnl Tell autoconf that the auxilliary files are actually located in +dnl Tell autoconf that the auxiliary files are actually located in dnl the LLVM autoconf directory, not here. AC_CONFIG_AUX_DIR($LLVM_SRC/autoconf) Index: polly/trunk/autoconf/configure.bak =================================================================== --- polly/trunk/autoconf/configure.bak +++ polly/trunk/autoconf/configure.bak @@ -6,7 +6,7 @@ dnl Identify where LLVM source tree is LLVM_SRC_ROOT="../.." LLVM_OBJ_ROOT="../.." -dnl Tell autoconf that the auxilliary files are actually located in +dnl Tell autoconf that the auxiliary files are actually located in dnl the LLVM autoconf directory, not here. AC_CONFIG_AUX_DIR($LLVM_SRC_ROOT/autoconf) Index: polly/trunk/lib/Analysis/ScopInfo.cpp =================================================================== --- polly/trunk/lib/Analysis/ScopInfo.cpp +++ polly/trunk/lib/Analysis/ScopInfo.cpp @@ -55,7 +55,7 @@ STATISTIC(ScopFound, "Number of valid Scops"); STATISTIC(RichScopFound, "Number of Scops containing a loop"); -// Multiplicative reductions can be disabled seperately as these kind of +// Multiplicative reductions can be disabled separately as these kind of // operations can overflow easily. Additive reductions and bit operations // are in contrast pretty stable. static cl::opt DisableMultiplicativeReductions( Index: polly/trunk/lib/JSON/include/json/value.h =================================================================== --- polly/trunk/lib/JSON/include/json/value.h +++ polly/trunk/lib/JSON/include/json/value.h @@ -617,7 +617,7 @@ /** \brief A linked page based hash-table implementation used internally by Value. * \internal ValueInternalMap is a tradional bucket based hash-table, with a linked - * list in each bucket to handle collision. There is an addional twist in that + * list in each bucket to handle collision. There is an additional twist in that * each node of the collision linked list is a page containing a fixed amount of * value. This provides a better compromise between memory usage and speed. * Index: polly/trunk/lib/JSON/include/json/writer.h =================================================================== --- polly/trunk/lib/JSON/include/json/writer.h +++ polly/trunk/lib/JSON/include/json/writer.h @@ -23,7 +23,7 @@ /** \brief Outputs a Value in JSON format without formatting (not human friendly). * * The JSON document is written in a single line. It is not intended for 'human' consumption, - * but may be usefull to support feature such as RPC where bandwith is limited. + * but may be useful to support feature such as RPC where bandwidth is limited. * \sa Reader, Value */ class JSON_API FastWriter : public Writer Index: polly/trunk/lib/Transform/CodePreparation.cpp =================================================================== --- polly/trunk/lib/Transform/CodePreparation.cpp +++ polly/trunk/lib/Transform/CodePreparation.cpp @@ -18,7 +18,7 @@ // variables. Such variables are generated before scop detection and // also before the code preparation pass. All PHI nodes that are not canonical // induction variables are not supported by the indvars based code generation -// and are consequently translated into explict memory accesses. +// and are consequently translated into explicit memory accesses. // // - scev based code generation: // Index: polly/trunk/test/Cloog/ambigous_schedule.ll =================================================================== --- polly/trunk/test/Cloog/ambigous_schedule.ll +++ polly/trunk/test/Cloog/ambigous_schedule.ll @@ -91,7 +91,7 @@ ; CHECK: } ; CHECK: } -; This check makes sure CLooG stops splitting for ambigious schedules as +; This check makes sure CLooG stops splitting for ambiguous schedules as ; they may be generated by the isl/PoCC/Pluto schedule optimizers. ; ; Previously we created such code: Index: polly/trunk/utils/check_format.sh =================================================================== --- polly/trunk/utils/check_format.sh +++ polly/trunk/utils/check_format.sh @@ -14,7 +14,7 @@ for ARG in "$@" do - ${CLANG_FORMAT} $ARG | diff -u $ARG - + ${CLANG_FORMAT} -style=llvm $ARG | diff -u $ARG - >&2 if [[ $? -eq 1 ]]; then OK=1 Index: polly/trunk/www/video-js/video.js =================================================================== --- polly/trunk/www/video-js/video.js +++ polly/trunk/www/video-js/video.js @@ -39,7 +39,7 @@ this.video = element; } // Store reference to player on the video element. - // So you can acess the player later: document.getElementById("video_id").player.play(); + // So you can access the player later: document.getElementById("video_id").player.play(); this.video.player = this; this.values = {}; // Cache video values. this.elements = {}; // Store refs to controls elements. @@ -456,7 +456,7 @@ this.canPlaySourceResult = false; return false; }, - // Check if the extention is compatible, for when type won't work + // Check if the extension is compatible, for when type won't work canPlayExt: function(src){ if (!src) { return ""; } var match = src.match(/\.([^\.]+)$/); @@ -1290,10 +1290,10 @@ _V_.addListener(document, "mousemove", this.onCurrentTimeScrubberMouseMove.rEvtContext(this)); _V_.addListener(document, "mouseup", this.onCurrentTimeScrubberMouseUp.rEvtContext(this)); }, - onCurrentTimeScrubberMouseMove: function(event){ // Removeable + onCurrentTimeScrubberMouseMove: function(event){ // Removable this.setCurrentTimeWithScrubber(event); }, - onCurrentTimeScrubberMouseUp: function(event){ // Removeable + onCurrentTimeScrubberMouseUp: function(event){ // Removable _V_.unblockTextSelection(); document.removeEventListener("mousemove", this.onCurrentTimeScrubberMouseMove, false); document.removeEventListener("mouseup", this.onCurrentTimeScrubberMouseUp, false); @@ -1385,11 +1385,11 @@ } }, - fullscreenOnWindowResize: function(event){ // Removeable + fullscreenOnWindowResize: function(event){ // Removable this.positionControlBars(); }, // Create listener for esc key while in full screen mode - fullscreenOnEscKey: function(event){ // Removeable + fullscreenOnEscKey: function(event){ // Removable if (event.keyCode == 27) { this.exitFullScreen(); } @@ -1718,7 +1718,7 @@ return temp; }; -// Removeable Event listener with Context +// Removable Event listener with Context // Replaces the original function with a version that has context // So it can be removed using the original function name. // In order to work, a version of the function must already exist in the player/prototype