Merge branch 'iwyu'

http://include-what-you-use.org/
This commit is contained in:
David Adam
2015-07-29 09:30:19 +08:00
83 changed files with 505 additions and 737 deletions

View File

@@ -7,11 +7,10 @@
#ifndef FISH_PARSE_UTIL_H
#define FISH_PARSE_UTIL_H
#include "autoload.h"
#include "parse_tree.h"
#include <wchar.h>
#include <map>
#include <set>
#include <stddef.h>
#include <vector>
#include "common.h"
#include "parse_constants.h"
/**
Find the beginning and end of the first subshell in the specified string.
@@ -186,6 +185,7 @@ parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src, pars
This does NOT currently detect unterminated quotes.
*/
class parse_node_t;
parser_test_error_bits_t parse_util_detect_errors_in_argument(const parse_node_t &node, const wcstring &arg_src, parse_error_list_t *out_errors = NULL);
/* Given a string containing a variable expansion error, append an appropriate error to the errors list. The global_token_pos is the offset of the token in the larger source, and the dollar_pos is the offset of the offending dollar sign within the token. */