From 701b08be70d4a375c8bf70841a0fe1d24d2f836b Mon Sep 17 00:00:00 2001 From: "Ian A. Mason" Date: Wed, 12 Jun 2019 06:47:57 -0700 Subject: [PATCH] Keeping ahead(?) of wllvm. --- ians-notes.txt | 5 ++++- shared/parser.go | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/ians-notes.txt b/ians-notes.txt index 3bfe198..1864d99 100644 --- a/ians-notes.txt +++ b/ians-notes.txt @@ -16,7 +16,10 @@ For linting: https://github.com/alecthomas/gometalinter -gometalinter.v2 ./... +brew tap alecthomas/homebrew-tap +brew install gometalinter + +gometalinter ./... For keeping up with the Jones: diff --git a/shared/parser.go b/shared/parser.go index 3033cc1..a643c29 100644 --- a/shared/parser.go +++ b/shared/parser.go @@ -205,14 +205,17 @@ func parse(argList []string) parserResult { "-pedantic": {0, pr.compileUnaryCallback}, "-x": {1, pr.compileBinaryCallback}, - "-g": {0, pr.compileUnaryCallback}, - "-g0": {0, pr.compileUnaryCallback}, - "-g1": {0, pr.compileUnaryCallback}, - "-ggdb": {0, pr.compileUnaryCallback}, - "-ggdb3": {0, pr.compileUnaryCallback}, - "-gdwarf-2": {0, pr.compileUnaryCallback}, - "-gdwarf-3": {0, pr.compileUnaryCallback}, - "-gline-tables-only": {0, pr.compileUnaryCallback}, + "-g": {0, pr.compileUnaryCallback}, + "-g0": {0, pr.compileUnaryCallback}, + "-g1": {0, pr.compileUnaryCallback}, + "-ggdb": {0, pr.compileUnaryCallback}, + "-ggdb3": {0, pr.compileUnaryCallback}, + "-gdwarf": {0, pr.compileUnaryCallback}, + "-gdwarf-2": {0, pr.compileUnaryCallback}, + "-gdwarf-3": {0, pr.compileUnaryCallback}, + "-gdwarf-4": {0, pr.compileUnaryCallback}, + "-gline-tables-only": {0, pr.compileUnaryCallback}, + "-grecord-gcc-switches": {0, pr.compileUnaryCallback}, "-p": {0, pr.compileUnaryCallback}, "-pg": {0, pr.compileUnaryCallback},