~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to AspectC++/ACConfig.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2006-04-07 11:56:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060407115635-e8wfgmetasrf2p27
Tags: 0.99+1.0pre3-1
* new upstream release
* Apply patch from Martin Michlmayr for g++-4.1 (Closes: #357901)
* further (simple) patches in Puma/ and AspectC++ for g++-4.1
* note that Puma needs to be rewoven so that it can be compiled
  with g++-4.1. This will be done we switch the default compiler
  version.
* Patch JoinPointRepo.cc so that it doesn't loop endlessly anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
using std::set;
25
25
 
26
26
// PUMA includes
 
27
#include "Puma/ExtACKeywords.ah"
27
28
#include "Puma/ErrorSeverity.h"
28
29
#include "Puma/OptsParser.h"
29
30
#include "Puma/SysCall.h"
69
70
    "argument type for generated new operator", OptsParser::AT_MANDATORY }, 
70
71
  { ACConfig::ACOPT_PROJ_FILE, 0, "proj_file",
71
72
    "\t" "Path to the project file", OptsParser::AT_MANDATORY},
 
73
  { ACConfig::ACOPT_WARN_DEPRECATED, 0, "warn_deprecated",
 
74
    "\t" "Warn if deprecated syntax is used", OptsParser::AT_NONE },
 
75
  { ACConfig::ACOPT_NO_WARN_DEPRECATED, 0, "no_warn_deprecated",
 
76
    "Don't warn if deprecated syntax is used", OptsParser::AT_NONE },
 
77
  { ACConfig::ACOPT_WARN_MACRO, 0, "warn_macro",
 
78
    "\t" "Warn if a macro transformation had to be ignored",
 
79
    OptsParser::AT_NONE },
 
80
  { ACConfig::ACOPT_NO_WARN_MACRO, 0, "no_warn_macro",
 
81
    "\t" "Don't warn if a macro transformation had to be ignored",
 
82
    OptsParser::AT_NONE },
 
83
  { ACConfig::ACOPT_KEYWORDS, 'k', "keywords",
 
84
    "\t" "Allow AspectC++ keywords in normal project files",
 
85
    OptsParser::AT_NONE },
72
86
  { 0, 0, 0, 0, OptsParser::AT_NONE }
73
87
};
74
88
 
106
120
    _problem_local_class = true;
107
121
    _problem_spec_scope  = true;
108
122
  }
 
123
  _warn_deprecated = true;
 
124
  _warn_macro = true;
 
125
  bool keywords = false;
109
126
  
110
127
  char* tmp;
111
128
 
184
201
      have_proj_file = true;
185
202
      _proj_file = op.getArgument ().c_str ();
186
203
      break;
 
204
    case ACOPT_WARN_DEPRECATED:
 
205
      _warn_deprecated = true;
 
206
      break;
 
207
    case ACOPT_NO_WARN_DEPRECATED:
 
208
      _warn_deprecated = false;
 
209
      break;
 
210
    case ACOPT_WARN_MACRO:
 
211
      _warn_macro = true;
 
212
      break;
 
213
    case ACOPT_NO_WARN_MACRO:
 
214
      _warn_macro = false;
 
215
      break;
 
216
    case ACOPT_KEYWORDS:
 
217
      keywords = true;
 
218
      break;
187
219
    default:
188
220
      usage (_argv[0]);
189
221
      return false;
253
285
  }
254
286
  
255
287
  // select AspectC++ as the input language
 
288
  ExtACKeywords::aspectof ()->prj_keywords (keywords);
 
289
  
 
290
  // TODO: this should be obsolete -> check it
256
291
  _project.config ().Add ("--lang-ac++");
257
292
  _project.configure (_project.config ());
 
293
  
258
294
 
259
295
  return true;
260
296
}