Skip to content

Instantly share code, notes, and snippets.

@vgvassilev
vgvassilev / cmssw_cheatsheet.md
Last active September 17, 2020 06:36
CMSSW Cheatsheet

Building ROOT in the context of CMSSW

wget https://raw.githubusercontent.com/cms-sw/cms-bot/master/config.map
eval `grep CMSSW_11_0_ROOT6_X config.map | grep -v DISABLED`
PKGTOOLS_TAG=V00-32-XX
CMSDIST_TAG=IB/CMSSW_11_0_X/gcc700
ARCH=slc7_amd64_gcc820
git clone -b $CMSDIST_TAG https://github.com/cms-sw/cmsdist
git clone -b $PKGTOOLS_TAG https://github.com/cms-sw/pkgtools
@vgvassilev
vgvassilev / Useless conditions clang
Created March 8, 2015 10:21
Patch provided by Nick Lewycky (see [cfe-dev] CopyPaste detection clang static analyzer)
Index: include/clang/AST/Expr.h
===================================================================
--- include/clang/AST/Expr.h (revision 200870)
+++ include/clang/AST/Expr.h (working copy)
@@ -690,9 +690,9 @@
}
/// IgnoreParens - Ignore parentheses. If this Expr is a ParenExpr, return
- /// its subexpression. If that subexpression is also a ParenExpr,
- /// then this method recursively returns its subexpression, and so forth.