Commit graph

33 commits

Author SHA1 Message Date
Michael Opdenacker
cb495269eb Remove blacklisted structure names
- Those were important structures in Linux
  They deserve to be indexed.

- This will require re-indexing, so this will take a bit
  of time to be fixed in the database

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-01-29 08:11:27 +01:00
Michael Opdenacker
f4129147ad Blacklist "else" and "endif"
- This fixes https://github.com/bootlin/elixir/issues/76

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-12-17 15:45:42 +01:00
Michael Opdenacker
c1af301390 Fix variable name in previous commit
- Most probably a typo

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-12-17 10:39:39 +01:00
Carmeli Tamir
6fcfc0ca79 Fixed path dependency in lib.py 2019-12-15 15:15:09 -05:00
Michael Opdenacker
51a6dff682 Python parentheses coding style fixes
- According to https://www.python.org/dev/peps/pep-0008/

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-12-01 07:01:26 +01:00
Michael Opdenacker
aca12c5cca Add support for more source file extensions, in particular .S
- Suggested by Armijn Hemel
  https://github.com/bootlin/elixir/issues/27

- In particular, functions defined in assembly
  are now supported. Look for "memcpy" for example.

A database rebuild is required. Will increase the version
number in the next commit

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-10-08 11:33:52 +02:00
Michael Opdenacker
453e8a127c Factorize the definition of supported extensions
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-10-08 07:33:36 +02:00
Michael Opdenacker
c6aee2ad9d Improve progress reporting + factorize LXR_DATA_DIR access
- For long runs, allows to see which project we are in, and the
  percentage of processed tags

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-10-03 13:33:26 +02:00
Michael Opdenacker
dad935cbc7 Minor update to symbol blacklist
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-10-01 09:35:29 +02:00
Michael Opdenacker
89b777fb4f Add some comments
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-09-23 14:34:20 +02:00
Michael Opdenacker
5d35c4dae8 Un-blacklist some symbol names
This caused important symbols to be ignored (at least for the
list of instances) See https://github.com/bootlin/elixir/issues/44

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-07-16 16:00:46 +02:00
Chen-Yu Tsai
d74914e699 Fall back to subprocess.check_output when subprocess.run is not available
On machines with Python < 3.5, subprocess.run is not available. In this
case, subprocess.check_output serves the same purpose [1].

This allows Elixir to run on older systems, such as Ubuntu 14.04 which
comes with Python 3.4.

[1] https://docs.python.org/3.5/library/subprocess.html#subprocess.check_output

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
2018-04-10 07:36:02 +00:00
Michael Opdenacker
b4118f3f9e
Merge pull request #34 from plaes/master
Clean up unused imports
2018-04-05 10:53:43 +02:00
Mikaël Bouillot
537e6b3a7b Change business name 2018-02-15 21:27:00 +00:00
Priit Laes
f02c6469fa Clean up unused imports
Signed-off-by: Priit Laes <plaes@plaes.org>
2017-10-21 14:03:37 +03:00
Mikaël Bouillot
1b4c0fc7d4 Update notices to match the new license 2017-06-27 14:13:28 +02:00
Silvio Fricke
b7e1cd3215 change shebang to be more flexible
Python developers tend to use `virtualenv` then a fixed shebang is contra
productive.

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
2017-06-14 10:30:51 +02:00
Mikaël Bouillot
6df19c144c Turn query into function 2017-05-10 21:41:20 +02:00
Mikaël Bouillot
9c2cf2cf86 Use Perl non-greedy regex in tokenizer
We can now exclude C++ style comments and #includes,
in addition to C-style comments and strings.
2017-05-01 22:30:18 +02:00
Mikaël Bouillot
b04cc838dc Extend black list to small identifiers
The extended list was generated with a modified references database
that only stored the size of the records instead of the records
themselves. This list basically correponds to all references records
larger than 4 megabytes.
2017-03-27 09:08:56 +02:00
Mikaël Bouillot
3ef4641fc4 Style string literals 2017-03-23 17:33:32 +01:00
Mikaël Bouillot
832f7c8b6d Add license 2017-03-09 17:25:42 +01:00
Mikaël Bouillot
fabede0657 Restrict identifier matching rules with blacklist 2017-02-26 11:28:48 +01:00
Mikaël Bouillot
a37cd93a24 Relax identifier matching rules 2017-02-26 09:43:37 +01:00
Mikaël Bouillot
bc9722659e Correct binary output 2017-02-07 10:57:32 +01:00
Mikaël Bouillot
0bf34d7751 Database update script, new data format 2017-02-06 15:15:51 +01:00
Mikaël Bouillot
abbf08646a Split data module and add dummy element to iterators 2017-02-05 21:26:39 +01:00
Mikaël Bouillot
a479750bee Ident query and lots of data stuff 2017-02-05 21:02:10 +01:00
Mikaël Bouillot
4135084a0f Highlight comments 2017-02-05 11:34:33 +01:00
Mikaël Bouillot
8ad62ba1b6 Identifier matching rules 2017-02-05 11:14:48 +01:00
Mikaël Bouillot
cf0e1bd666 Directory and file queries 2017-02-05 10:27:36 +01:00
Mikaël Bouillot
10b9e273e7 Tweak script and print helpers 2017-02-05 08:38:43 +01:00
Mikaël Bouillot
2997686d70 Shell script and call from Python 2017-02-04 20:07:26 +01:00