Skip to content

Commit

Permalink
Add Vim modelines for GNU style in stap
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jan 29, 2009
1 parent 4c2732a commit 73267b8
Show file tree
Hide file tree
Showing 26 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto_free.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ class auto_free_ref
pointer_type& _ptr;
};
#endif

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions buildrun.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,5 @@ run_pass (systemtap_session& s)
rc = system (staprun_cmd.c_str ());
return rc;
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions buildrun.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ int run_pass (systemtap_session& s);


#endif // BUILDRUN_H

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions cache.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,5 @@ unlink_cache_entry(const string &cache_ent_path)
unlink(mod_path.c_str()); //it must exist, globbed for it earlier
unlink(source_path.c_str()); //if its not there, no matter
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ void clean_cache(systemtap_session& s);
long get_cache_file_size(const std::string &cache_ent_path);
long get_cache_file_weight(const std::string &cache_ent_path);
void unlink_cache_entry(const std::string &cache_ent_path);

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions coveragedb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,5 @@ void update_coverage_db(systemtap_session &s)
}

#endif /* HAVE_LIBSQLITE3 */

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
1 change: 1 addition & 0 deletions coveragedb.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ void update_coverage_db(systemtap_session &s);

#endif

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions dwarf_wrappers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ void dwfl_assert(const std::string& desc, bool condition)
if (!condition)
dwfl_assert(desc, -1);
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions dwarf_wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,5 @@ class dwarf_line_t


#endif

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
1 change: 1 addition & 0 deletions elaborate.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4105,3 +4105,4 @@ typeresolution_info::resolved (const token*, exp_type)
num_newly_resolved ++;
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions elaborate.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,5 @@ struct unparser;


#endif // ELABORATE_H

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions hash.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,5 @@ find_hash (systemtap_session& s, const string& script)
// Update C source name with new module_name.
s.translated_source = string(s.tmpdir) + "/" + s.module_name + ".c";
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ class hash
};

void find_hash (systemtap_session& s, const std::string& script);

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions loc2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,5 @@ c_translate_pointer_store (struct obstack *pool, int indent,
Writes complete lines of C99, code forming a complete C block, to STREAM.
Return value is true iff that code uses the `deref' runtime macros. */
bool c_emit_location (FILE *stream, struct location *loc, int indent);

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1175,3 +1175,5 @@ main (int argc, char * const argv [])

return (rc||pending_interrupts) ? EXIT_FAILURE : EXIT_SUCCESS;
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
1 change: 1 addition & 0 deletions parse.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2558,3 +2558,4 @@ parser::parse_symbol ()
return sym;
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,5 @@ class parser


#endif // PARSE_H

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions session.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,5 @@ struct systemtap_session
extern int pending_interrupts;

#endif // SESSION_H

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
1 change: 1 addition & 0 deletions staptree.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2508,3 +2508,4 @@ require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)
}
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions staptree.h
Original file line number Diff line number Diff line change
Expand Up @@ -882,3 +882,5 @@ provide (deep_copy_visitor* v, T src)
}

#endif // STAPTREE_H

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions tapsets.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9703,3 +9703,5 @@ all_session_groups(systemtap_session& s)
#undef DOONE
return g;
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions tapsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ std::vector<derived_probe_group*> all_session_groups(systemtap_session& s);


#endif // TAPSETS_H

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions translate.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -5019,3 +5019,5 @@ translate_pass (systemtap_session& s)

return rc + s.num_errors();
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions translate.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,5 @@ int translate_pass (systemtap_session& s);


#endif // TRANSLATE_H

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
1 change: 1 addition & 0 deletions util.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,4 @@ const string cmdstr_quoted(const string& cmd)
return quoted_cmd;
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
2 changes: 2 additions & 0 deletions util.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@ lex_cast_qstring(IN const & in)
out2 += '"';
return out2;
}

/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */

0 comments on commit 73267b8

Please sign in to comment.