cxxproject_clangtoolchain 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Toolchain for Clang compiler
2
+
3
+ This project contains the definition of a toolchain to be used together with [cxxproject](http://marcmo.github.com/cxxproject/index.html).
data/Rakefile.rb ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :package => :build
@@ -0,0 +1,18 @@
1
+ $:.unshift(File.dirname(__FILE__)+"/")
2
+
3
+ PKG_VERSION = "0.1.2"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "cxxproject_clangtoolchain"
7
+ s.version = PKG_VERSION
8
+ s.summary = "toolchain support for clang."
9
+ s.description = <<-EOF
10
+ Toolchain supporting clang
11
+ EOF
12
+ s.files = `git ls-files`.split($\)
13
+ s.require_path = "lib"
14
+ s.author = "oliver mueller"
15
+ s.email = "oliver.mueller@gmail.com"
16
+ s.homepage = "https://github.com/marcmo/cxxproject"
17
+ s.add_dependency("cxxproject")
18
+ end
@@ -1,11 +1,10 @@
1
-
2
1
  cxx_plugin do |cxx,bbs,log|
3
2
 
4
3
  require 'errorparser/clang_compiler_error_parser'
5
4
  toolchain "clang",
6
5
  :COMPILER =>
7
6
  {
8
- :CPP =>
7
+ :CPP =>
9
8
  {
10
9
  :COMMAND => "clang++",
11
10
  :DEFINE_FLAG => "-D",
@@ -13,22 +12,22 @@ cxx_plugin do |cxx,bbs,log|
13
12
  :INCLUDE_PATH_FLAG => "-I",
14
13
  :COMPILE_FLAGS => "-c ",
15
14
  :DEP_FLAGS => "-MMD -MF ", # empty space at the end is important!
16
- :ERROR_PARSER => ClangCompilerErrorParser.new
15
+ :ERROR_PARSER => Cxxproject::ClangCompilerErrorParser.new
17
16
  },
18
- :C =>
17
+ :C =>
19
18
  {
20
19
  :BASED_ON => :CPP,
21
20
  :COMMAND => "clang",
22
21
  :COMPILE_FLAGS => "-c ",
23
22
  :DEP_FLAGS => "-MMD -MF ", # empty space at the end is important!
24
- :ERROR_PARSER => ClangCompilerErrorParser.new
23
+ :ERROR_PARSER => Cxxproject::ClangCompilerErrorParser.new
25
24
  },
26
25
  :ASM =>
27
26
  {
28
27
  :BASED_ON => :C,
29
28
  }
30
29
  },
31
- :LINKER =>
30
+ :LINKER =>
32
31
  {
33
32
  :COMMAND => "clang++",
34
33
  :SCRIPT => "-T",
@@ -17,7 +17,7 @@ module Cxxproject
17
17
  d.file_name = File.expand_path(scan_res[0][0])
18
18
  d.line_number = scan_res[0][1].to_i
19
19
  d.message = scan_res[0][4]
20
- if (scan_res[0][3].include?".")
20
+ if (scan_res[0][3].include?("."))
21
21
  d.severity = SEVERITY_ERROR
22
22
  d.message = scan_res[0][3] + ": " + d.message
23
23
  else
@@ -20,7 +20,7 @@ module Cxxproject
20
20
  d.message = l
21
21
  if l.length == 0
22
22
  d.severity = SEVERITY_OK
23
- elsif l.include?" Warning:"
23
+ elsif l.include?(" Warning:")
24
24
  d.severity = SEVERITY_WARNING
25
25
  else
26
26
  d.severity = SEVERITY_ERROR
metadata CHANGED
@@ -1,56 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cxxproject_clangtoolchain
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
4
5
  prerelease:
5
- version: 0.1.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - oliver mueller
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
+ date: 2012-07-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: cxxproject
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: ! ' Toolchain supporting clang
12
31
 
13
- date: 2012-07-05 00:00:00 Z
14
- dependencies: []
15
-
16
- description: " Toolchain supporting clang\n"
32
+ '
17
33
  email: oliver.mueller@gmail.com
18
34
  executables: []
19
-
20
35
  extensions: []
21
-
22
36
  extra_rdoc_files: []
23
-
24
- files:
25
- - lib/errorparser/clang_linker_error_parser.rb
37
+ files:
38
+ - .gitignore
39
+ - README.md
40
+ - Rakefile.rb
41
+ - cxxproject_clangtoolchain.gemspec
42
+ - lib/cxxproject_clangtoolchain/plugin.rb
26
43
  - lib/errorparser/clang_compiler_error_parser.rb
27
- - lib/plugin.rb
28
- homepage: https://github.com/marcmo/toolchainclang
44
+ - lib/errorparser/clang_linker_error_parser.rb
45
+ homepage: https://github.com/marcmo/cxxproject
29
46
  licenses: []
30
-
31
47
  post_install_message:
32
48
  rdoc_options: []
33
-
34
- require_paths:
49
+ require_paths:
35
50
  - lib
36
- required_ruby_version: !ruby/object:Gem::Requirement
51
+ required_ruby_version: !ruby/object:Gem::Requirement
37
52
  none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: "0"
42
- required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
58
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
48
63
  requirements: []
49
-
50
64
  rubyforge_project:
51
65
  rubygems_version: 1.8.24
52
66
  signing_key:
53
67
  specification_version: 3
54
68
  summary: toolchain support for clang.
55
69
  test_files: []
56
-