summaryrefslogtreecommitdiff
path: root/vala/valasourcefile.vala
Commit message (Collapse)AuthorAgeFilesLines
* vala: Avoid problems with '\' in #line directives on Windows星外之神2022-08-281-1/+8
| | | | | | | | | | | Replace '\' with '/' in SourceFile.relative_path like in CodeContext.realpath(). F:/msys64/home/x/test/test.vala.c: In function '_vala_main': F:/msys64/home/x/test/test.vala.c:12:9: warning: unknown escape sequence: '\M' 12 | #line 3 "C:\MyFiles\test.vala" | ^~~~~~~~~~~~~~~~~~~~~~ Fixes https://gitlab.gnome.org/GNOME/vala/issues/1353
* vala: Avoid critical in SourceFile.get_mapped_length()Rico Tzschichholz2022-06-141-0/+4
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/1330
* Recognize multiple valid CCode.gir_namespace/_version attributes in VAPI filesRico Tzschichholz2021-06-281-0/+2
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1189
* vala: Make use of new printf-like API of Report.*()Rico Tzschichholz2020-10-261-1/+1
|
* vala: Don't use possibly uninitialized backing field of package_namePrinceton Ferro2020-04-111-1/+1
| | | | | | | | | | | Don't check _package_name directly, which may be null at the time installed_version is accessed. This fixes a bug where Vala wouldn't generate errors when using symbols that are unavailable for a package version. Introduced by 7f0e90a5c34f437b7ab8f9197a9d42fc835b1a60 Fixes https://gitlab.gnome.org/GNOME/vala/issues/971
* vala: Let methods return an unowned reference to internal collectionsRico Tzschichholz2019-09-301-4/+4
| | | | Correctly state ownership in documentation since those were never a copy.
* vala: Add CodeContext.get_source_file() and perform some sanity checksRico Tzschichholz2019-03-191-1/+1
|
* vala: Drop "explicit" from ValaSourceFile and use "from_commandline"Rico Tzschichholz2018-11-031-5/+0
|
* Drop trailing spaces/tabsRico Tzschichholz2018-03-271-2/+2
| | | | It was about time to do this.
* valac: Always use the given "pkg-config" and respect PKG_CONFIG envarRico Tzschichholz2018-02-081-20/+2
|
* vapigen: Mark given source-files as such and force girparser to handle themRico Tzschichholz2017-08-191-0/+5
| | | | | | E.g. gtk+-4.0 is *one* library with multiple namespaces and gir files. So we need to handle this case and allow all explicitly given GIR files to be parsed.
* Introduce [Version (...)]Florian Brosch2016-01-301-0/+64
| | | | | | | | | | | | | | | | | Parameters: since: string, version number experimental: bool (was: [Experimental]) experimental_until: string, version number deprecated_since: string, version number (was: [Deprecated (since="")]) replacement: string, symbol name (was: [Deprecated (replacement="")]) deprecated: bool (was: [Deprecated]) Used symbols labeled with [Version (since = "")] are checked against the locally installed package version. Use --disable-since-check to avoid this behaviour. Fixes bug 678912.
* Fix parameter names in the documentation for libvalaBen Iofel2015-11-111-1/+0
| | | | Fixes bug 755917
* Make .vapi files on the command line generate quoted includesDaniel Silverstone2011-11-151-1/+7
| | | | Use #include "..." rather than #include <...>
* Fix Path.build_path call used for --includedirRaul Gutierrez Segales2011-09-061-1/+1
| | | | | | Commit af0aa50c misses the separator for Path.build_path. Fixes bug 658355.
* Use Path.build_path instead of using raw string.printfLuca Bruno2011-09-051-5/+5
| | | | | | | | Fixes a regression introduced by commit 7f7a991aa7689137e166. Using Path.build_path prevents having double slash (//) in the path which could be interpreted as comments by the C compiler. Fixes bug 658296.
* glib-2.0: Add string.last_index_of_charJürg Billeter2011-01-201-1/+1
| | | | This deprecates string.rchr.
* glib-2.0: Add string.index_of_nth_charJürg Billeter2011-01-151-2/+2
| | | | | This deprecates string.utf8_offset, string.offset, string.pointer_to_offset, and string.ndup.
* Replace SemanticAnalyzer with CodeContext in CodeNode.check parameterJürg Billeter2010-10-281-2/+2
|
* Move several enums into the Vala namespaceEvan Nemerson2010-10-101-1/+1
|
* SourceFile: change the definition of 'used'Ryan Lortie2010-10-061-1/+1
| | | | | | | | | | | | Consider a source file as used only if actual C code (or declarations) have been generated from something in that source file. This greatly reduces the number of dependencies listed for compilations that touch a large number of symbols in trivial ways without really making use of them (for example, when listing a very large number of unused fast-vapi files, as parvala does). Fixes bug 630144.
* valac: Output make-style dependency fileRyan Lortie2010-09-091-0/+6
| | | | | | | | | | Add a --deps= option to the compiler to write out a make-style dependency file. The name of the target used is the name of the dependency file itself. This lets the dependency file serve as a stamp for the C file (which may or may not be touched depending if it was changed). The dependency output is always touched.
* SourceFileType: Add SourceFileType.NONERyan Lortie2010-09-091-0/+1
|
* SourceFile: Add SourceFileType.FAST enum valueRyan Lortie2010-09-091-1/+2
|
* SourceFile: Introduce SourceFileType enumerationRyan Lortie2010-09-091-4/+8
| | | | | | | | | SourceFileType has 2 possible values: SOURCE PACKAGE and replaces the CodeWriter.external_package boolean with a new field called 'file_type'.
* glib-2.0: Deprecate string.len () in favor of string.lengthJürg Billeter2010-08-201-1/+1
|
* Use relative path as specified on the command-line in error messagesJürg Billeter2010-08-201-3/+14
| | | | Fixes bug 591683.
* Add experimental vala tool for use with #!Jürg Billeter2010-06-301-1/+3
|
* Drop ReadOnly* collection classesJürg Billeter2010-03-201-2/+2
| | | | | | They are not very useful in the compiler as they are not immutable, which means that they do not allow iteration while modifying the underlying collection.
* GIR Namespace supportRob Taylor2010-02-011-0/+12
| | | | | | | | | | | | | | | | | | This patch introduces two new CCode annotations for use in VAPI files, gir_namespace and gir_version. This allows us to correctly map vala namespaces to gobject-introspection namespaces when generating GIR files. The mapping is actually done on a SourceFile level. This allows us to work around cases where one vala namespace maps into multiple GIR namespaces (in particular, GLib vs GLib and GObject). In the absense of annotations, the old 'guess it' method will be applied. This commit also adds annotations to some core vapis. Fixes bug 584683.
* Do not use Gee namespace to avoid conflict with libgeeJürg Billeter2009-10-121-7/+6
|
* Support using directives inside namespacesJürg Billeter2009-09-261-40/+8
|
* Fixed string to char* casts in Scanner and SourceFileDidier 'Ptitjes2009-09-251-1/+1
|
* Comment handling improvementsFlorian Brosch2009-09-041-5/+19
| | | | Fixes bug 529040, bug 540513, and bug 546096.
* valac: Add flag to specify a separate basedir for the public headerMark Lee2009-08-201-0/+3
| | | | | | | This basedir is used in the VAPI file. Needed because of the way that build systems such as Waf deal with the location of the public header. Fixes GNOME Bug #589964.
* Fix source filename manglingJürg Billeter2009-07-171-1/+1
|
* Remove unused cheader_filename fieldJürg Billeter2009-04-101-1/+0
|
* Do not delete existing .c filesJürg Billeter2009-04-101-1/+6
| | | | Fixes bug 501585.
* Remove unused get_cheader_filename methodsJürg Billeter2009-04-101-12/+0
|
* Rework header file generationJürg Billeter2009-03-311-199/+5
| | | | | | Generate single C header file for public API, do not use header files for internal API. Fixes bug 471244, bug 571037, bug 572536, and bug 575629.
* Add missing include for enum values, fixes bug 531724Jürg Billeter2009-01-171-2/+2
| | | | | | | | | | | 2009-01-17 Jürg Billeter <j@bitron.ch> * vala/valaenumvalue.vala: * vala/valasourcefile.vala: Add missing include for enum values, fixes bug 531724 svn path=/trunk/; revision=2381
* Add SourceFile.clear_using_directives method, required byJürg Billeter2008-12-061-0/+4
| | | | | | | | | | | 2008-12-06 Jürg Billeter <j@bitron.ch> * vala/valasourcefile.vala: Add SourceFile.clear_using_directives method, required by anjuta-vala-plugin svn path=/trunk/; revision=2120
* Fix critical when using error codesJürg Billeter2008-11-291-1/+3
| | | | | | | | | | 2008-11-30 Jürg Billeter <j@bitron.ch> * vala/valasourcefile.vala: Fix critical when using error codes svn path=/trunk/; revision=2088
* Allow any integer compatible value to be used as array index, fixes bugJürg Billeter2008-11-171-1/+1
| | | | | | | | | | | | | 2008-11-17 Jürg Billeter <j@bitron.ch> * vala/valaarraycreationexpression.vala: * vala/valaelementaccess.vala: * vala/valasourcefile.vala: Allow any integer compatible value to be used as array index, fixes bug 561057 svn path=/trunk/; revision=2029
* Remove unnecessary accept calls in semantic analyzerJürg Billeter2008-11-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-10 Jürg Billeter <j@bitron.ch> * vala/valaaddressofexpression.vala: * vala/valaarraycreationexpression.vala: * vala/valaassignment.vala: * vala/valabinaryexpression.vala: * vala/valablock.vala: * vala/valacastexpression.vala: * vala/valacatchclause.vala: * vala/valaclass.vala: * vala/valaconditionalexpression.vala: * vala/valaconstant.vala: * vala/valaconstructor.vala: * vala/valacreationmethod.vala: * vala/valadeclarationstatement.vala: * vala/valadelegate.vala: * vala/valadeletestatement.vala: * vala/valadestructor.vala: * vala/valadostatement.vala: * vala/valaelementaccess.vala: * vala/valaenum.vala: * vala/valaenumvalue.vala: * vala/valaerrorcode.vala: * vala/valaerrordomain.vala: * vala/valaexpressionstatement.vala: * vala/valafield.vala: * vala/valaforeachstatement.vala: * vala/valaformalparameter.vala: * vala/valaforstatement.vala: * vala/valaifstatement.vala: * vala/valainitializerlist.vala: * vala/valainterface.vala: * vala/valainvocationexpression.vala: * vala/valalambdaexpression.vala: * vala/valalocalvariable.vala: * vala/valalockstatement.vala: * vala/valamemberaccess.vala: * vala/valamemberinitializer.vala: * vala/valamethod.vala: * vala/valanamespace.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valapointerindirection.vala: * vala/valapostfixexpression.vala: * vala/valaproperty.vala: * vala/valapropertyaccessor.vala: * vala/valareferencetransferexpression.vala: * vala/valareturnstatement.vala: * vala/valasemanticanalyzer.vala: * vala/valasignal.vala: * vala/valasizeofexpression.vala: * vala/valasourcefile.vala: * vala/valastruct.vala: * vala/valaswitchlabel.vala: * vala/valaswitchsection.vala: * vala/valaswitchstatement.vala: * vala/valathrowstatement.vala: * vala/valatrystatement.vala: * vala/valatypecheck.vala: * vala/valatypeofexpression.vala: * vala/valaunaryexpression.vala: * vala/valawhilestatement.vala: * vala/valayieldstatement.vala: Remove unnecessary accept calls in semantic analyzer svn path=/trunk/; revision=2010
* Check parameters when checking argumentsJürg Billeter2008-10-311-0/+6
| | | | | | | | | | | | | 2008-10-31 Jürg Billeter <j@bitron.ch> * vala/valacodenode.vala: * vala/valaformalparameter.vala: * vala/valasemanticanalyzer.vala: * vala/valasourcefile.vala: Check parameters when checking arguments svn path=/trunk/; revision=1944
* Fix crash on certain header dependencies, fixes bug 546183Jürg Billeter2008-10-251-1/+1
| | | | | | | | | | | 2008-10-25 Jürg Billeter <j@bitron.ch> * vala/valasemanticanalyzer.vala: * vala/valasourcefile.vala: Fix crash on certain header dependencies, fixes bug 546183 svn path=/trunk/; revision=1918
* Support parsing from a string, patch by Andrea Del Signore, fixes bugJürg Billeter2008-09-281-3/+31
| | | | | | | | | | | 2008-09-28 Jürg Billeter <j@bitron.ch> * vala/valasourcefile.vala: Support parsing from a string, patch by Andrea Del Signore, fixes bug 553926 svn path=/trunk/; revision=1806
* Replace NamespaceReference by UsingDirective and UnresolvedSymbol, fixesJürg Billeter2008-09-261-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | 2008-09-26 Jürg Billeter <j@bitron.ch> * vala/Makefile.am: * vala/valacodevisitor.vala: * vala/valagenieparser.vala: * vala/valaparser.vala: * vala/valasemanticanalyzer.vala: * vala/valasourcefile.vala: * vala/valasymbolresolver.vala: * vala/valaunresolvedsymbol.vala: * vala/valausingdirective.vala: * compiler/valacompiler.vala: Replace NamespaceReference by UsingDirective and UnresolvedSymbol, fixes bug 537510 * tests/namespaces.vala: Test using directive with nested namespaces svn path=/trunk/; revision=1783
* Don't derive from GObject in libvala where not necessary to improveJürg Billeter2008-08-141-1/+1
| | | | | | | | | 2008-08-14 Jürg Billeter <j@bitron.ch> Don't derive from GObject in libvala where not necessary to improve compilation performance svn path=/trunk/; revision=1757